commit | author | age
|
6e5577
|
1 |
- name: Step 00xxxxx post software |
e60071
|
2 |
hosts: support |
6e5577
|
3 |
gather_facts: False |
S |
4 |
become: yes |
|
5 |
vars_files: |
|
6 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
|
7 |
tasks: |
|
8 |
- debug: |
|
9 |
msg: "Post-Software tasks Started" |
|
10 |
|
a7f5ba
|
11 |
- name: Configure windows AD on first windows machine |
GC |
12 |
hosts: |
e60071
|
13 |
- windows[0] |
a7f5ba
|
14 |
gather_facts: False |
GC |
15 |
vars_files: |
|
16 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
|
17 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml" |
|
18 |
tags: |
|
19 |
- step004 |
|
20 |
- common_tasks |
|
21 |
- windows_tasks |
|
22 |
roles: |
385bde
|
23 |
- { role: "{{ ANSIBLE_REPO_PATH }}/roles/windows-ad", when: install_win_ad | bool } |
a7f5ba
|
24 |
tasks: |
GC |
25 |
- name: Reboot upon promotion |
|
26 |
win_reboot: |
385bde
|
27 |
when: install_win_ad | bool |
a7f5ba
|
28 |
|
GC |
29 |
- name: Wait for connection |
|
30 |
wait_for_connection: |
385bde
|
31 |
when: install_win_ad | bool |
a7f5ba
|
32 |
|
700b0a
|
33 |
- name: Step lab post software deployment |
GC |
34 |
hosts: bastions |
|
35 |
gather_facts: False |
|
36 |
become: yes |
|
37 |
tags: |
|
38 |
- opentlc_bastion_tasks |
|
39 |
vars_files: |
|
40 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
|
41 |
tasks: |
f59d49
|
42 |
- import_role: |
GC |
43 |
name: "{{ ANSIBLE_REPO_PATH }}/roles/bastion-opentlc-ipa" |
|
44 |
when: install_ipa_client|bool |
|
45 |
|
671ac5
|
46 |
- name: Copy Tower License File |
GC |
47 |
copy: |
e112cd
|
48 |
src: "~/secrets/ans-tower-lab_license.txt" |
671ac5
|
49 |
dest: /root/license.txt |
GC |
50 |
|
e112cd
|
51 |
- name: Copy Openstack PEM key |
GC |
52 |
copy: |
|
53 |
src: "~/secrets/ans-tower-lab_openstack.pem" |
|
54 |
dest: /root/.ssh/opentstack.pem |
|
55 |
owner: root |
|
56 |
group: root |
|
57 |
mode: 0400 |
|
58 |
|
274c80
|
59 |
- name: Post Tower configs |
B |
60 |
hosts: towers[0] |
|
61 |
become: yes |
|
62 |
vars_files: |
|
63 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
|
64 |
roles: |
b3e515
|
65 |
- { role: "{{ ANSIBLE_REPO_PATH }}/roles/tower_demo", when: deploy_tower_demo | d(false) | bool } |
274c80
|
66 |
|
802fdc
|
67 |
- name: Install Tower For Homework |
P |
68 |
hosts: bastions |
|
69 |
become: yes |
|
70 |
vars_files: |
|
71 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
|
72 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml" |
|
73 |
roles: |
|
74 |
- { role: "{{ ANSIBLE_REPO_PATH }}/roles/install-tower", when: deploy_tower_homework | d(false) | bool } |
274c80
|
75 |
|
6e5577
|
76 |
- name: PostSoftware flight-check |
S |
77 |
hosts: localhost |
|
78 |
connection: local |
|
79 |
gather_facts: false |
|
80 |
become: false |
|
81 |
vars_files: |
|
82 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml" |
|
83 |
- "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml" |
|
84 |
tags: |
|
85 |
- post_flight_check |
|
86 |
tasks: |
|
87 |
- debug: |
|
88 |
msg: "Post-Software checks completed successfully" |