33 lines
762 B
YAML
33 lines
762 B
YAML
---
|
|
# patching.yml
|
|
#
|
|
# This playbook can be used to patch all the servers in an inventory to the latest software available.
|
|
# Because we typically encrypt our disk storage, we don't wait for the connection to become available again.
|
|
# Variables:
|
|
# - target: the host grouper in the inventory -- default: all
|
|
#
|
|
# Patch then restart a node
|
|
|
|
- hosts: Node0
|
|
order: sorted
|
|
serial: 1
|
|
vars:
|
|
ansible_become: yes
|
|
ansible_become_method: sudo
|
|
vars_files:
|
|
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
|
|
roles:
|
|
- patching
|
|
|
|
- hosts: managed
|
|
order: sorted
|
|
ignore_unreachable: true
|
|
serial: 4
|
|
vars:
|
|
ansible_become: yes
|
|
ansible_become_method: sudo
|
|
vars_files:
|
|
- "{{ lookup('env', 'ANSIBLE_VAULT_FILE') }}"
|
|
roles:
|
|
- patching
|