From 26d81517d2d679920a82ba54a48c86e1aee38cdc Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 18 Nov 2019 20:12:47 +0300 Subject: [PATCH] Feat: Improve task names --- playbooks/debian/init-local-phd.yml | 2 +- playbooks/debian/roles/add-dns-domain/tasks/main.yml | 2 +- playbooks/redhat/init-local-phd.yml | 2 +- playbooks/roles/packages/tasks/main.yml | 4 ++-- playbooks/roles/phd/tasks/main.yml | 6 +++--- playbooks/roles/python-dev-packages/tasks/main.yml | 4 ++-- playbooks/roles/python-packages/tasks/main.yml | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/playbooks/debian/init-local-phd.yml b/playbooks/debian/init-local-phd.yml index 1c1f89f..63e188b 100644 --- a/playbooks/debian/init-local-phd.yml +++ b/playbooks/debian/init-local-phd.yml @@ -14,7 +14,7 @@ become: true group: name: phd - - name: user phd + - name: Create user phd become: true user: name: phd diff --git a/playbooks/debian/roles/add-dns-domain/tasks/main.yml b/playbooks/debian/roles/add-dns-domain/tasks/main.yml index e61fd3d..cf5e1d2 100644 --- a/playbooks/debian/roles/add-dns-domain/tasks/main.yml +++ b/playbooks/debian/roles/add-dns-domain/tasks/main.yml @@ -15,7 +15,7 @@ mode: '0600' force: no - - name: Update config + - name: Update domain config become: true shell: | echo ' diff --git a/playbooks/redhat/init-local-phd.yml b/playbooks/redhat/init-local-phd.yml index 0fb6baf..9ed9e9d 100644 --- a/playbooks/redhat/init-local-phd.yml +++ b/playbooks/redhat/init-local-phd.yml @@ -14,7 +14,7 @@ become: true group: name: phd - - name: user phd + - name: Create user phd become: true user: name: phd diff --git a/playbooks/roles/packages/tasks/main.yml b/playbooks/roles/packages/tasks/main.yml index bcc6668..c322083 100644 --- a/playbooks/roles/packages/tasks/main.yml +++ b/playbooks/roles/packages/tasks/main.yml @@ -1,4 +1,4 @@ -- name: Install software packages +- name: Install software packages (Debian) become: true apt: autoclean: yes @@ -12,7 +12,7 @@ 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', 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 diff --git a/playbooks/roles/python-dev-packages/tasks/main.yml b/playbooks/roles/python-dev-packages/tasks/main.yml index 03670d1..a0cfe3c 100644 --- a/playbooks/roles/python-dev-packages/tasks/main.yml +++ b/playbooks/roles/python-dev-packages/tasks/main.yml @@ -11,7 +11,7 @@ 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 @@ -29,7 +29,7 @@ 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', diff --git a/playbooks/roles/python-packages/tasks/main.yml b/playbooks/roles/python-packages/tasks/main.yml index 0abb3a1..e01e020 100644 --- a/playbooks/roles/python-packages/tasks/main.yml +++ b/playbooks/roles/python-packages/tasks/main.yml @@ -1,4 +1,4 @@ -- name: Install Python and packages +- name: Install Python and packages (Debian) become: true apt: autoclean: yes @@ -14,7 +14,7 @@ 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', -- 2.39.5