]> git.phdru.name Git - ansible.git/commitdiff
Feat(update-root): Sync `ssh/known_hosts`
authorOleg Broytman <phd@phdru.name>
Thu, 24 Mar 2022 00:26:32 +0000 (03:26 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 24 Mar 2022 00:42:34 +0000 (03:42 +0300)
playbooks/update-root.yml

index 4b1b94e665105cfb23fcfa4d9eeba7098359a808..1c89674ed18f529b058e7eb61a2110d843d39eac 100644 (file)
              '.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