From 1e793dd71244338d2ed9179b2a4034befbbcf281 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 27 Apr 2020 13:54:11 +0300 Subject: [PATCH] Refactor: Remove excessive `force: yes` - this is the default --- playbooks/roles/root/tasks/mc.yml | 3 --- playbooks/roles/root/tasks/root.yml | 2 -- 2 files changed, 5 deletions(-) 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 -- 2.39.2