From 6e3e032a1271744712249530cbf10391e3828d47 Mon Sep 17 00:00:00 2001 From: gardar Date: Tue, 4 Oct 2022 17:42:30 +0000 Subject: [PATCH] fix: replace deprecated include with include_tasks --- tasks/main.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ffbbda94..2b8a859f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,8 +1,6 @@ --- -# File: tasks/main.yml - Main tasks for Vault - - name: Include asserts - include: asserts.yml + include_tasks: asserts.yml - name: Add Vault group become: true @@ -56,7 +54,7 @@ installation_required: "{{ vault_installation is failed or installed_vault_version.stdout != vault_version }}" - name: Install OS packages and Vault Enterprise via control host - include: install_enterprise.yml + include_tasks: install_enterprise.yml when: - vault_enterprise | bool - not vault_install_remotely | bool @@ -64,7 +62,7 @@ - installation_required | bool - name: Install OS packages and Vault via control host - include: install.yml + include_tasks: install.yml when: - not vault_enterprise | bool - not vault_install_remotely | bool @@ -72,7 +70,7 @@ - installation_required | bool - name: Install Vault via HashiCorp repository - include: install_hashi_repo.yml + include_tasks: install_hashi_repo.yml when: - not vault_enterprise | bool - not vault_install_remotely | bool @@ -80,7 +78,7 @@ - installation_required | bool - name: Install OS packages and Vault via remote hosts - include: install_remote.yml + include_tasks: install_remote.yml when: - not vault_enterprise | bool - vault_install_remotely | bool @@ -130,11 +128,11 @@ when: vault_enable_logrotate | bool - name: TLS configuration - include: ../tasks/tls.yml + include_tasks: ../tasks/tls.yml when: vault_tls_disable == 0 - name: Backend storage TLS configuration - include: ../tasks/backend_tls.yml + include_tasks: ../tasks/backend_tls.yml when: vault_tls_gossip == 1 - name: "Get content of GCP Credentials from file"