Skip to content

Commit

Permalink
[SET-651] Enable vault role in playbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
gaol authored and rpelisse committed Jan 18, 2024
1 parent bab4426 commit ecc29a3
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cci_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@
gather_facts: false

vars_files:
- vars/vault.yml
- vars/cci_automate.yml

pre_tasks:
- name: "Install hvac python library"
ansible.builtin.pip:
name: hvac>=1.2.1
executable: pip3

- name: "Load Secrets from Vault"
ansible.builtin.include_role:
name: "vault"

tasks:
- name: Automate CCI VM using Ansible
include_tasks: cci_vm_automate.yml
Expand All @@ -14,4 +25,4 @@
- { url: "{{ cci_os_cluster_url_second }}", id: "{{ cci_os_project_id_second }}", network: "{{ cci_os_network_second }}", flavor: "{{ cci_os_flavor_second }}" }

- name: Automate CCI VM using Ansible
include_tasks: cci_casc_edit.yml
include_tasks: cci_casc_edit.yml
10 changes: 10 additions & 0 deletions cci_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@
become: yes

vars_files:
- vars/vault.yml
- vars/cci.yml
- vars/java.yml

pre_tasks:
- name: "Install hvac python library"
ansible.builtin.pip:
name: hvac>=1.2.1
executable: pip3

- name: "Load Secrets from Vault"
ansible.builtin.include_role:
name: "vault"

- name: Register
redhat_subscription:
state: present
Expand Down
10 changes: 10 additions & 0 deletions jenkins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
become: yes
become_user: root
vars_files:
- vars/vault.yml
- vars/olympus.yml
- vars/component-alignment.yml
- vars/aphrodite.yml
- vars/jobs.yml
- vars/mailer.yml

pre_tasks:
- name: "Install hvac python library"
ansible.builtin.pip:
name: hvac>=1.2.1
executable: pip3

- name: "Load Secrets from Vault"
ansible.builtin.include_role:
name: "vault"

- name: Register
redhat_subscription:
state: present
Expand Down
10 changes: 10 additions & 0 deletions zeus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
become: yes
become_user: root
vars_files:
- vars/vault.yml
- vars/ansible.yml
- vars/olympus.yml
- vars/ssh.yml
Expand All @@ -23,6 +24,15 @@
- vars/qualys.yml

pre_tasks:
- name: "Install hvac python library"
ansible.builtin.pip:
name: hvac>=1.2.1
executable: pip3

- name: "Load Secrets from Vault"
ansible.builtin.include_role:
name: "vault"

- name: Register
community.general.redhat_subscription:
state: present
Expand Down

0 comments on commit ecc29a3

Please sign in to comment.