Convert include to include_tasks

Include is deprecated, additionally include_tasks is now faster.

Signed-off-by: Kevin Carter <kevin@cloudnull.com>
Change-Id: I20f92b972b794513cb774983f3aa6044769987d7
This commit is contained in:
Kevin Carter 2022-09-03 21:14:25 -05:00
parent a9ecec103d
commit f3fe518781
2 changed files with 8 additions and 8 deletions

View File

@ -30,19 +30,19 @@
- always - always
# TODO (jrosser) Remove this task for the Z release # TODO (jrosser) Remove this task for the Z release
- include: repo_sync_cleanup.yml - ansible.builtin.include_tasks: repo_sync_cleanup.yml
tags: tags:
- repo_server-install - repo_server-install
- include: repo_pre_install.yml - ansible.builtin.include_tasks: repo_pre_install.yml
tags: tags:
- repo_server-install - repo_server-install
- include: repo_install.yml - ansible.builtin.include_tasks: repo_install.yml
tags: tags:
- repo_server-install - repo_server-install
- include: repo_post_install.yml - ansible.builtin.include_tasks: repo_post_install.yml
tags: tags:
- repo_server-config - repo_server-config
@ -52,7 +52,7 @@
path: "{{ repo_service_home_folder }}/.ssh/authorized_keys" path: "{{ repo_service_home_folder }}/.ssh/authorized_keys"
state: absent state: absent
- include: repo_install_constraints.yml - ansible.builtin.include_tasks: repo_install_constraints.yml
when: inventory_hostname == groups['repo_all'][0] when: inventory_hostname == groups['repo_all'][0]
tags: repo_server-config tags: repo_server-config

View File

@ -14,10 +14,10 @@
# limitations under the License. # limitations under the License.
# Prepare the host # Prepare the host
- include: common/test-setup-host.yml - ansible.builtin.include_tasks: common/test-setup-host.yml
# Install repo server # Install repo server
- include: test-install-repo-server.yml - ansible.builtin.include_tasks: test-install-repo-server.yml
# Test repo server # Test repo server
- include: test-repo-server-functional.yml - ansible.builtin.include_tasks: test-repo-server-functional.yml