From 17e6bc50295ebfb741a4530e8631bec8a83d7217 Mon Sep 17 00:00:00 2001 From: Miguel Angel Medinilla Luque Date: Tue, 2 Apr 2024 12:45:59 +0200 Subject: [PATCH] Stop using deprecated `include` module in tasks The `include` module will not work anymore in ansible 2.16 and was set as deprecated in ansible 2.4 (at least). --- tasks/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 3edca1d..808c63a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,33 +1,33 @@ --- -- include: check-settings.yml +- import_tasks: check-settings.yml tags: check when: ansible_os_family not in ['RedHat', 'Rocky'] -- include: check-settings-centos.yml +- import_tasks: check-settings-centos.yml tags: check when: ansible_os_family in ['RedHat', 'Rocky'] -- include: install.yml +- import_tasks: install.yml tags: install when: ansible_os_family not in ['RedHat', 'Rocky'] -- include: install-centos.yml +- import_tasks: install-centos.yml tags: install when: ansible_os_family in ['RedHat', 'Rocky'] -- include: configure.yml +- import_tasks: configure.yml tags: configure when: ansible_os_family not in ['RedHat', 'Rocky'] -- include: configure-centos.yml +- import_tasks: configure-centos.yml tags: configure when: ansible_os_family in ['RedHat', 'Rocky'] -- include: secure.yml +- import_tasks: secure.yml tags: secure -- include: databases.yml +- import_tasks: databases.yml tags: databases -- include: users.yml +- import_tasks: users.yml tags: users