X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Froot%2Ftasks%2Fmc.yml;h=655514aa69d4e9ff574f87e33014cdeafd6c557f;hb=d75839f853d60353ccb4eb4796491720f014d4f1;hp=e46d622f7731aeab7a24fb220f2e5f2762f8846e;hpb=edf447b86f291118443987ab67de35b99e9b2d38;p=ansible.git diff --git a/playbooks/debian/roles/root/tasks/mc.yml b/playbooks/debian/roles/root/tasks/mc.yml index e46d622..655514a 100644 --- a/playbooks/debian/roles/root/tasks/mc.yml +++ b/playbooks/debian/roles/root/tasks/mc.yml @@ -3,6 +3,7 @@ command: test -L ~root/.cache/mc -a -L ~root/.config/mc -a -L ~root/.local/share/mc failed_when: false register: links_exist + changed_when: links_exist.rc != 0 - debug: msg: "mc links have already been created" @@ -45,7 +46,7 @@ loop: ['.local/share/mc'] when: links_exist.rc != 0 -- name: "Setup root ms - overwrite files from ~phd/admin" +- name: "Setup root mc - overwrite files from ~phd/admin" become: true copy: src: "~phd/admin/home/root/.mc/{{ item }}"