X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Froles%2Fphd%2Ftasks%2Fmain.yml;h=163a34bc0b6a468ae646ac1488e744198bc2e7ce;hb=26d81517d2d679920a82ba54a48c86e1aee38cdc;hp=985a98ec9d3a9b16d5a446c74839d956363f6573;hpb=2160823bc29a1c954e55048555a6e7678a23406d;p=ansible.git 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