forked from validatedpatterns/agof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
38 lines (36 loc) · 992 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# vim: ft=yaml.ansible
---
- name: "Prep the containerized installer (root required)"
hosts: aap_controllers
become: true
gather_facts: true
vars_files:
- 'vars/main.yml'
- "~/agof_vault.yml"
tasks:
- name: AAP Containerized installer prereqs - packages and user setup
ansible.builtin.include_role:
name: installer_prereqs
- name: "Run the containerized installer"
hosts: aap_controllers
become_user: "{{ containerized_installer_user }}"
become: true
vars_files:
- 'vars/main.yml'
- "~/agof_vault.yml"
tasks:
- name: Install AAP
ansible.builtin.include_role:
name: installer
- name: "Remove sudo file for installer user"
hosts: aap_controllers
become: true
gather_facts: false
vars_files:
- 'vars/main.yml'
- "~/agof_vault.yml"
tasks:
- name: Cleanup scaffolding after install
ansible.builtin.include_role:
name: installer_cleanup
when: containerized_installer_cleanup | bool