From: Oleg Broytman Date: Mon, 27 Apr 2020 10:54:11 +0000 (+0300) Subject: Refactor: Remove excessive `force: yes` - this is the default X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1e793dd71244338d2ed9179b2a4034befbbcf281;p=ansible.git Refactor: Remove excessive `force: yes` - this is the default --- diff --git a/playbooks/roles/root/tasks/mc.yml b/playbooks/roles/root/tasks/mc.yml index c27e80e..655878e 100644 --- a/playbooks/roles/root/tasks/mc.yml +++ b/playbooks/roles/root/tasks/mc.yml @@ -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'] diff --git a/playbooks/roles/root/tasks/root.yml b/playbooks/roles/root/tasks/root.yml index fb8d446..7826f8c 100644 --- a/playbooks/roles/root/tasks/root.yml +++ b/playbooks/roles/root/tasks/root.yml @@ -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