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