X-Git-Url: https://git.phdru.name/?p=ansible.git;a=blobdiff_plain;f=playbooks%2Froles%2Fphd%2Ftasks%2Fmain.yml;h=163a34bc0b6a468ae646ac1488e744198bc2e7ce;hp=985a98ec9d3a9b16d5a446c74839d956363f6573;hb=26d81517d2d679920a82ba54a48c86e1aee38cdc;hpb=d0c9ec436426dc0e4f05be75645d47f22c336690 diff --git a/playbooks/roles/phd/tasks/main.yml b/playbooks/roles/phd/tasks/main.yml index 985a98e..163a34b 100644 --- a/playbooks/roles/phd/tasks/main.yml +++ b/playbooks/roles/phd/tasks/main.yml @@ -30,7 +30,7 @@ group: phd groups: "{{ system_groups }}" - - name: Remove mc directories + - name: Remove default mc directories file: path: "{{ item }}" state: absent @@ -43,7 +43,7 @@ register: phd_extracted failed_when: "(ansible_facts.os_family == 'Debian' and 'rc' in phd_extracted and phd_extracted.rc != 0) or (ansible_facts.os_family == 'RedHat' and ('rc' in phd_extracted and phd_extracted.rc not in [0, 139]))" - - name: Add alias + - name: Add alias (Debian) become: true lineinfile: path: /etc/aliases @@ -52,7 +52,7 @@ when: ansible_facts.os_family == 'Debian' when: phd_exists.results|selectattr('stat.exists')|list|length != 2 -- name: Add alias +- name: Add alias (RedHat) become: true lineinfile: path: /etc/aliases