]> git.phdru.name Git - ansible.git/commitdiff
Feat(root): Remove `force: no` to update some files
authorOleg Broytman <phd@phdru.name>
Mon, 27 Apr 2020 10:54:59 +0000 (13:54 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 27 Apr 2020 10:54:59 +0000 (13:54 +0300)
playbooks/roles/root/tasks/root.yml
playbooks/update-root.yml

index 7826f8c2f86184d613fd9ddb13486bfa2ef621b3..5ca9f960c6e574ceda7c24fbdb4c8f5778ebddf9 100644 (file)
     directory_mode: "0700"
     mode: "0700"
     force: no
-  loop: ['.mc', '.ssh', '.vim', 'bin', 'lib']
+  loop: ['.mc', '.ssh', 'bin', 'lib']
+
+- name: "Setup ~root - copy vim from ~phd"
+  become: true
+  copy:
+    src: "~phd/{{ item }}"
+    remote_src: yes
+    dest: ~root
+    owner: root
+    group: root
+    directory_mode: "0700"
+    mode: "0700"
+  loop: ['.vim']
 
 - name: "Setup ~root - copy files from ~phd without overwriting"
   become: true
@@ -33,7 +45,6 @@
     group: root
     directory_mode: "0700"
     mode: "0600"
-    force: no
   loop: ['.bash_logout', '.inputrc', '.less', '.lesskey',
          '.screenrc', '.shellrc', '.tmux.conf', '.vimrc',
         ]
index 1deda04634252fc20637a40e9321ecd937eef1a0..c59578b13b702f61755e6d5551891a5c2f29f2bd 100644 (file)
@@ -22,7 +22,6 @@
         owner: root
         group: root
         mode: "0600"
-        force: no
       loop: ['.bashrc', 'admin/home/root/.profile',
              '.bash_logout', '.inputrc', '.less', '.lesskey',
              '.screenrc', '.shellrc', '.tmux.conf', '.vimrc',