forked from validatedpatterns/agof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
34 lines (32 loc) · 892 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
# vim: ft=yaml.ansible
---
- name: "Prep the containerized installer (root required)"
hosts: aap_controllers
become: true
gather_facts: true
vars_files:
- "~/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 | default('aap') }}"
become: true
vars_files:
- "~/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:
- "~/agof_vault.yml"
tasks:
- name: Cleanup scaffolding after install
ansible.builtin.include_role:
name: installer_cleanup