]> git.phdru.name Git - ansible.git/blobdiff - playbooks/update-root.yml
Feat(update-root): Sync `ssh/known_hosts`
[ansible.git] / playbooks / update-root.yml
index ac828183f7946e0882f4b2473c738d69f55ad65f..1c89674ed18f529b058e7eb61a2110d843d39eac 100644 (file)
@@ -4,7 +4,7 @@
   gather_facts: false
   tasks:
     - name: "Update ~root - sync directories from ~phd"
-      synchronize:
+      ansible.posix.synchronize:
         src: "~phd/{{ item }}"
         dest: ~root
         archive: no  # avoid setting owner/group
              '.screenrc', '.shellrc', '.tmux.conf', '.vimrc',
             ]
 
+    - name: "Update ~root/.ssh/known_hosts"
+      copy:
+        src: ~phd/.ssh/known_hosts
+        remote_src: yes
+        dest: ~root/.ssh/known_hosts
+        owner: root
+        group: root
+        mode: "0600"
+
     - name: "Create ~root/admin/prog/"
       file:
         path: ~root/admin/prog
@@ -55,4 +64,3 @@
         mode: "0600"
         force: no
       loop: ['hotlist', 'ini', 'panels.ini']
-