forked from validatedpatterns/agof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
43 lines (38 loc) · 1.39 KB
/
site.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
39
40
41
42
43
---
- name: "Pre-install: validate values and variables"
hosts: build_control
become: false
gather_facts: false
connection: local
vars_files:
- 'vars/main.yml'
- '~/agof_vault.yml'
tasks:
- name: "Show vars"
ansible.builtin.debug:
msg: 'build_idm: {{ build_idm }} / build_sat: {{ build_sat }} / automation_hub: {{ automation_hub }} / eda: {{ eda }} / containerized_install: {{ containerized_install }}'
- name: "Set controller port for containerized_install"
ansible.builtin.set_fact:
controller_port: 8443
when: containerized_install | bool
- name: "Phase 1 - initialize the environment"
ansible.builtin.import_playbook: ./init_env/main.yml
tags:
- tags_phase_1
- name: "Phase 2 - containerized AAP install including bootstrap and configuration"
ansible.builtin.import_playbook: ./containerized_install/main.yml
tags:
- tags_phase_2
when: containerized_install | bool
- name: "Phase 2 - bootstrap AAP (traditional install)"
ansible.builtin.import_playbook: ./hosts/main.yml
tags:
- tags_phase_2
when: not (containerized_install | default(true) | bool)
- name: "Phase 3 - configure AAP (traditional install OR AGOF custom IAC install)"
ansible.builtin.import_playbook: ./configure_aap.yml
tags:
- tags_phase_3
when:
- controller_postinstall_dir is not defined
- controller_postinstall_repo_url is not defined