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
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
---
|
|
#
|
|
# Update Red Hat Satellite and Capsules using ansible.
|
|
#
|
|
#
|
|
#
|
|
|
|
- hosts: satellite
|
|
remote_user: root
|
|
tasks:
|
|
- name: Updating OS on Satellite
|
|
yum:
|
|
name: '*'
|
|
state: latest
|
|
|
|
- name: Updating Satellite 6 to latest
|
|
command: satellite-installer --scenario satellite --upgrade
|
|
|
|
- name: Rebooting Satellite
|
|
command: sleep 2; systemctl reboot
|
|
async: 1
|
|
poll: 0
|
|
ignore_errors: true
|
|
|
|
- name: Wait for server to restart
|
|
local_action:
|
|
module: wait_for
|
|
host={{ inventory_hostname }}
|
|
port=22
|
|
delay=1
|
|
timeout=300
|
|
|
|
- hosts: capsules
|
|
remote_user: root
|
|
tasks:
|
|
- name: Updating OS on Capsule
|
|
yum: name='*' state=latest
|
|
|
|
- name: Updating Capsule 6 to latest
|
|
command: satellite-installer --scenario capsule --upgrade
|
|
|
|
- name: Rebooting Satellite
|
|
command: sleep 2; systemctl reboot
|
|
async: 1
|
|
poll: 0
|
|
ignore_errors: true
|
|
|
|
- name: Wait for server to restart
|
|
local_action:
|
|
module: wait_for
|
|
host={{ inventory_hostname }}
|
|
port=22
|
|
delay=1
|
|
timeout=300
|
|
|
|
|
|
|
|
|
|
|