-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathinitialconfig.yml
More file actions
49 lines (40 loc) · 1.55 KB
/
initialconfig.yml
File metadata and controls
49 lines (40 loc) · 1.55 KB
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
---
- name: Perform inital configs of lab VMs
hosts: "{{ vm_name | default('all')}}"
strategy: free
gather_facts: false
pre_tasks:
- name: Set facts for ansible_host to work with IP addr
ansible.builtin.set_fact:
ansible_host: "{{ ip_addr }}"
delegate_to: localhost
- name: Wait for connection on AWS and OCPv
ansible.builtin.wait_for_connection:
timeout: 900
when: shadowman_provision_hypervisor | default('RHV') == "AWS" or shadowman_provision_hypervisor | default('RHV') == "OCPV"
- name: Gather facts to work with remainder of playbook
ansible.builtin.setup:
tasks:
- name: Linux Setup
ansible.builtin.include_role:
name: shadowman_linux_setup
when: ansible_os_family is match("RedHat")
- name: RHEL register
ansible.builtin.include_role:
name: shadowman_rhel_register
when: ansible_os_family is match("RedHat")
- name: IDM register
ansible.builtin.include_role:
name: shadowman_add_to_idm
when:
- ansible_os_family is match("RedHat")
- shadowman_provision_hypervisor|default('RHV') != "Azure"
- shadowman_provision_hypervisor|default('RHV') != "AWS"
- name: Windows Config
ansible.builtin.include_role:
name: shadowman_add_to_ad
when:
- ansible_os_family is match("Windows")
- shadowman_provision_hypervisor|default('RHV') != "Azure"
- shadowman_provision_hypervisor|default('RHV') != "AWS"
# - shadowman_provision_hypervisor|default('RHV') != "OCPV"