summaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-05-27 12:06:02 +0300
committerLars Wirzenius <liw@liw.fi>2023-05-27 12:06:02 +0300
commit4a274802b74a72cd4ce8f9f6400e08a46181e98c (patch)
treed79192a01c7e700cff080ed8a0f2a6e9aa01493f /ansible/roles
parent1ccba91ea8d47babe3c1bb16ec08170ddfd55835 (diff)
downloadansibleness-4a274802b74a72cd4ce8f9f6400e08a46181e98c.tar.gz
feat(liw role): install a known hosts file with my host CA accepted
Sponsored-by: author
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/liw/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/ansible/roles/liw/tasks/main.yml b/ansible/roles/liw/tasks/main.yml
index 99f1b47..2a0f9b9 100644
--- a/ansible/roles/liw/tasks/main.yml
+++ b/ansible/roles/liw/tasks/main.yml
@@ -8,6 +8,15 @@
sudo -u liw -i bash -c "pwd && ./liw-dot-files/make-symlinks"
sudo -u liw -i bash -c "ln -nsf liw-dot-files/gitconfig-exolobe1 .gitconfig"
+- name: "configure liw SSH known hosts"
+ copy:
+ content: |
+ @cert-authority * ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIW1QmBC3OLsjpUv1gIYBHSN5tWhPOHHzDIXgj8d1Hg1
+ dest: /home/liw/.ssh/known_hosts
+ owner: liw
+ group: liw
+ mode: 0644
+
- name: "create ~liw/src and ~liw/cargo"
file:
state: directory