add update hosts play; add test nodes to inventory

This commit is contained in:
2022-05-01 13:38:44 -04:00
parent 79d3ac63a9
commit 4fef4eaa08
3 changed files with 25 additions and 6 deletions

View File

@ -1,18 +1,25 @@
[dev]
lab-dev-1
lab-dev-2
lab-dev-3
[dev:vars]
ansible_python_interpreter=/usr/bin/python2
[uat]
lab-uat-1
lab-uat-2
[test]
lab-test-1
lab-test-2
lab-test-3
[test:vars]
ansible_python_interpreter=/usr/bin/python3
[prod]
lab-prod-1
lab-prod-2
lab-prod-3
[prod:vars]
ansible_python_interpreter=/usr/bin/python3

View File

@ -34,7 +34,4 @@
include_tasks: tasks/long_running_tasks.yml
...

15
update-hosts.yml Normal file
View File

@ -0,0 +1,15 @@
---
- name: Update all hosts
hosts: all
gather_facts: no
become: yes
tasks:
- name: Update all hosts
package: name=* state=latest
async: 1800
poll : 3
...