Files
ansible-collection/playbooks/provisioning/provision-rhel-vxrail-vm.yml
alexpolo1 a3b8959ca9 Initial collection structure
Migrated from legacy playbook repo into Ansible collection format:

Roles (171 total):
- common: 44 roles (fact gathering, SSH setup, utilities)
- configuration: 32 roles (system config, networking, satellite)
- provisioning: 16 roles (VMware, Azure, physical server deployment)
- security: 15 roles (OpenSCAP hardening, certificates, AD integration)
- monitoring: 12 roles (Zabbix, logging agents, metrics)
- networking: 12 roles (DNS, DHCP, network interfaces)
- satellite: 4 roles (Pulp/Satellite management)
- misc: 36 roles (various utilities)

Playbooks (159 total):
- provisioning: 14 playbooks
- azure: 13 playbooks
- configuration: 22 playbooks
- maintenance: 10 playbooks
- security: 10 playbooks
- monitoring: 9 playbooks
- vcenter: 6 playbooks
- networking: 7 playbooks
- misc: 65 playbooks
2026-06-27 21:48:22 +02:00

106 lines
3.0 KiB
YAML

---
- hosts: all
gather_facts: False
connection: local
become: False
serial: 1
roles:
- set-vxrail-facts
- {role: vxrail-provision, when: (provision is undefined or provision == True)}
- {role: vmware-data-disk, when: (provision is undefined or provision == True)}
- {role: vxrail-storage-policy, when: (provision is undefined or provision == True)}
- {role: vmware-connected-network, when: (provision is undefined or provision == True)}
- {role: vmware-get-mac, when: (provision is undefined or provision == True)}
- {role: create-dhcp-reservation, when: (provision is undefined or provision == true)}
- {role: vmware-disconnected-network, when: (provision is undefined or provision == True)}
- hosts: all
gather_facts: True
connection: local
become: False
serial: 1
roles:
- vmware-set-hostname
- hosts: all
gather_facts: False
connection: local
become: False
serial: 1
roles:
- {role: vxrail-set-tags, when: (provision is undefined or provision == True)}
- hosts: all
gather_facts: True
connection: local
become: False
serial: 1
roles:
- {role: vmware-get-ip, when: ip is not defined}
- determine-jump-host
- create-dns-record
- create-ad-group
- add-users-to-ad-group
# - check-dns-name
# - vmware-compare-ip
- clear-host-from-known-hosts
- hosts: all
become: true
become_method: sudo
gather_facts: false
serial: 1
roles:
- vmware-auto-nic
- hosts: all
become: yes
become_method: sudo
roles:
# - validate-ip
- change-hostname
- enable-swappiness
- { role: subscription-manager-setup, tags: subscription }
- { role: realm-join, tags: ad-join }
- { role: add-sudoers-group, when: group_name is defined }
- { role: add-allowed-group, when: group_name is defined }
#- check-dns-name
- configure-inspec-access
- create-infra-user
- install-useful-stuff
- install-microsoft-defender
- configure-skat-certificate-trust
- yum-update
- ntp-client-setup
- bmc-discovery
- { role: dnf-automatic, when: ansible_distribution_major_version == '8' }
- { role: yum-cron-update, when: configure_yum_cron|default(true)|bool and ansible_distribution_major_version == '7' }
- ssh-deny-root
- zabbix-agent
- bmc-discovery
- fix--audit-logs-in-message
- hosts: all
become: yes
become_method: sudo
roles:
- install-openscap-requirements
- enforce-skat-openscap
- upload-skat-openscap
- { role: enforce-cis-rhel7, when: ansible_distribution_major_version == '7' }
- { role: enforce-cis-rhel8, when: ansible_distribution_major_version == '8' }
- hosts: all
gather_facts: no
roles:
- { role: satellite-create-cli-config, when: hammer_time == True }
- { role: satellite-set-host-group, when: hammer_time == True }
- { role: satellite-delete-cli-config, when: hammer_time == True }
- hosts: all
gather_facts: false
become: yes
tasks:
- name: reboot | any/all systems but not sequenced
reboot:
reboot_timeout: 600