become: true
group:
name: phd
- - name: user phd
+ - name: Create user phd
become: true
user:
name: phd
mode: '0600'
force: no
- - name: Update config
+ - name: Update domain config
become: true
shell: |
echo '
become: true
group:
name: phd
- - name: user phd
+ - name: Create user phd
become: true
user:
name: phd
-- name: Install software packages
+- name: Install software packages (Debian)
become: true
apt:
autoclean: yes
update_cache: yes
when: ansible_facts.os_family == 'Debian'
-- name: Install software packages
+- name: Install software packages (RedHat)
become: true
dnf:
name: ['adjtimex', 'arj', 'mailx', 'elinks', 'fetchmail', 'links',
group: phd
groups: "{{ system_groups }}"
- - name: Remove mc directories
+ - name: Remove default mc directories
file:
path: "{{ item }}"
state: absent
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
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
update_cache: yes
when: ansible_facts.os_family == 'Debian' and ansible_facts.distribution_major_version == '9'
-- name: Install development packages
+- name: Install development packages (Debian)
become: true
apt:
autoclean: yes
update_cache: yes
when: ansible_facts.os_family == 'Debian'
-- name: Install development packages
+- name: Install development packages (RedHat)
become: true
dnf:
name: ['bzip2-devel', 'expat-devel', 'gdbm-devel', 'gmp-devel',
-- name: Install Python and packages
+- name: Install Python and packages (Debian)
become: true
apt:
autoclean: yes
register: python
when: ansible_facts.os_family == 'Debian'
-- name: Install Python and packages
+- name: Install Python and packages (RedHat)
become: true
dnf:
name: ['python2', 'python3', 'python2-pip', 'python3-pip',