]> git.phdru.name Git - ansible.git/commitdiff
Refactor: Remove excessive `force: yes` - this is the default
authorOleg Broytman <phd@phdru.name>
Mon, 27 Apr 2020 10:54:11 +0000 (13:54 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 27 Apr 2020 10:54:11 +0000 (13:54 +0300)
playbooks/roles/root/tasks/mc.yml
playbooks/roles/root/tasks/root.yml

index c27e80e99d076681ad6c51e1e000b178063a7a3b..655878ec12f8cf57f06362a62ca82da63d44463d 100644 (file)
@@ -32,7 +32,6 @@
         path: "~root/{{ item }}"
         state: link
         src: "../.mc"
-        force: yes
       loop: ['.cache/mc', '.config/mc']
 
     - name: "Setup root mc - link mc directories (2)"
@@ -41,7 +40,6 @@
         path: "~root/{{ item }}"
         state: link
         src: "../../.mc"
-        force: yes
       loop: ['.local/share/mc']
   when: links_exist.results|selectattr('stat.exists')|selectattr('stat.islnk')|list|length != 3
 
@@ -54,5 +52,4 @@
     owner: root
     group: root
     mode: "0600"
-    force: yes
   loop: ['hotlist', 'ini', 'panels.ini']
index fb8d446f9234187b1ba78bccc8bde4f0b5e2dd58..7826f8c2f86184d613fd9ddb13486bfa2ef621b3 100644 (file)
@@ -8,7 +8,6 @@
     group: root
     directory_mode: "0700"
     mode: "0600"
-    force: yes
   loop: ['.bashrc', 'admin/home/root/.profile']
 
 - name: "Setup ~root - copy directories from ~phd"
@@ -62,7 +61,6 @@
     path: ~root/.bash_history
     src: ./.sh_history
     state: link
-    force: yes
 
 - name: "Setup ~root - create tmp/"
   become: true