Skip to content

Commit

Permalink
fix: replace deprecated include with include_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
gardar authored and bbaassssiiee committed Oct 5, 2022
1 parent 60c7478 commit 6e3e032
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -56,31 +54,31 @@
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
- not vault_install_remote_repo | bool
- 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
- not vault_install_hashi_repo | bool
- 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
- vault_install_hashi_repo | bool
- 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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6e3e032

Please sign in to comment.