Skip to content

Commit e166ac1

Browse files
committed
Name all role tasks
1 parent bce1337 commit e166ac1

28 files changed

Lines changed: 99 additions & 47 deletions

File tree

roles/bats/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
ansible.builtin.debug:
6969
msg: "{{ test_results.results | join('\n', attribute='stdout') }}"
7070

71-
- ansible.builtin.include_tasks: 'bats_fetch_results.yml'
71+
- name: "Include bats_fetch_results.yml"
72+
ansible.builtin.include_tasks: 'bats_fetch_results.yml'
7273
when: bats_fetch_results
7374

7475
- name: "Fail if tests didn't pass"

roles/custom_certificates/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
args:
8989
creates: "{{ custom_certificates_ca_directory_certs }}/{{ custom_certificates_server }}.crt"
9090

91-
- ansible.builtin.include_tasks: issue.yml
91+
- name: 'include issue.yml'
92+
ansible.builtin.include_tasks: issue.yml
9293
when: custom_certificates_hostnames is defined
9394
with_items: "{{ custom_certificates_hostnames }}"
9495
loop_control:

roles/customize_home/tasks/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
path: "{{ ansible_env.HOME }}/.gitkeep/"
1717
state: absent
1818

19-
- ansible.builtin.include_tasks: clone_specified_repo.yml
19+
- name: Include clone_specified_repo.yml
20+
ansible.builtin.include_tasks: clone_specified_repo.yml
2021
when: customize_home_git_repo is defined
2122

2223
- name: Check custom bootstrap script exists
2324
ansible.builtin.stat:
2425
path: "{{ ansible_env.HOME }}/{{ customize_home_bootstrap_script }}"
2526
register: bootstrap_script_path
2627

27-
- ansible.builtin.include_tasks: boostrap_script.yml
28+
- name: Include bootstrap_script.yml
29+
ansible.builtin.include_tasks: boostrap_script.yml
2830
when: bootstrap_script_path.stat.exists

roles/dynflow_devel/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
2-
- ansible.builtin.include_tasks: dynflow_install.yml
2+
- name: Include dynflow_install.yml
3+
ansible.builtin.include_tasks: dynflow_install.yml

roles/fips/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
- ansible.builtin.include_tasks: 'el{{ ansible_distribution_major_version }}.yml'
2+
- name: Include tasks specific to OS major version
3+
ansible.builtin.include_tasks: 'el{{ ansible_distribution_major_version }}.yml'
34
when: not ansible_fips
45

56
- name: reboot vm

roles/foreman_client_repositories/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
- ansible.builtin.include_tasks: "{{ foreman_client_repositories_environment }}_repo.yml"
2+
- name: Include repositories_environment specific tasks
3+
ansible.builtin.include_tasks: "{{ foreman_client_repositories_environment }}_repo.yml"
34
when:
45
- ansible_os_family == 'RedHat'
56

roles/foreman_client_repositories/tasks/staging_repo.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
priority: '1'
1515
gpgcheck: no
1616

17-
- ansible.builtin.include_tasks: qpid.yml
17+
- name: Include qpid.yml
18+
ansible.builtin.include_tasks: qpid.yml
1819
when:
1920
- ansible_distribution_major_version == "7"

roles/foreman_devel/tasks/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
2-
- ansible.builtin.include_tasks: check_forks_of_repos.yml
2+
- name: Include check_forks_of_repos.yml
3+
ansible.builtin.include_tasks: check_forks_of_repos.yml
34
when: katello_devel_github_username is defined and foreman_installer_options_internal_use_only is defined
45

5-
- ansible.builtin.include_tasks: rhel.yml
6+
- name: Include rhel.yml
7+
ansible.builtin.include_tasks: rhel.yml
68
when: ansible_distribution == "RedHat"
79

8-
- ansible.builtin.include_tasks: github_push_ssh.yml
10+
- name: Include github_push_ssh.yml
11+
ansible.builtin.include_tasks: github_push_ssh.yml
912
when: foreman_devel_github_push_ssh
1013

1114
- name: setup reviewing script

roles/foreman_installer/tasks/install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
- ansible.builtin.include_tasks: installer_version.yml
2+
- name: Include installer_version.yml
3+
ansible.builtin.include_tasks: installer_version.yml
34

45
- name: 'Check if foreman_installer_options is a string'
56
ansible.builtin.fail:
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
---
2-
- ansible.builtin.include_tasks: packages.yml
2+
- name: Include packages.yml
3+
ansible.builtin.include_tasks: packages.yml
34

4-
- ansible.builtin.include_tasks: locales.yml
5+
- name: Include locales.yml
6+
ansible.builtin.include_tasks: locales.yml
57
when: ansible_os_family == 'Debian'
68

7-
- ansible.builtin.include_tasks: module_prs.yml
9+
- name: Include module_prs.yml
10+
ansible.builtin.include_tasks: module_prs.yml
811
when: (foreman_installer_module_prs|length > 0) or (foreman_installer_module_branches|length > 0)
912

10-
- ansible.builtin.include_tasks: custom_hiera.yml
13+
- name: Include custom_hiera.yml
14+
ansible.builtin.include_tasks: custom_hiera.yml
1115
when: foreman_installer_custom_hiera
1216

13-
- ansible.builtin.include_tasks: install.yml
17+
- name: Include install.yml
18+
ansible.builtin.include_tasks: install.yml
1419
when: not foreman_installer_upgrade
1520

16-
- ansible.builtin.include_tasks: upgrade.yml
21+
- name: Include upgrade.yml
22+
ansible.builtin.include_tasks: upgrade.yml
1723
when: foreman_installer_upgrade

0 commit comments

Comments
 (0)