-
Notifications
You must be signed in to change notification settings - Fork 6
/
site.yml
58 lines (52 loc) · 1.75 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- name: "Pre-install: validate values and variables"
hosts: localhost
become: false
gather_facts: false
connection: local
vars_files:
- 'vars/main.yml'
- '~/agof_vault.yml'
vars:
aap_version: '2.4'
init_env_collection_install_force: true
tasks:
- name: Ensure we can proceed
ansible.builtin.assert:
that:
- aap_version == '2.4'
fail_msg: "aap_version {{ aap_version }} not (yet) supported. Must be 2.4"
- name: "Show vars"
ansible.builtin.debug:
msg:
- "aap_version: {{ aap_version }}"
- "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