add update hosts play; add test nodes to inventory
This commit is contained in:
@ -1,18 +1,25 @@
|
|||||||
[dev]
|
[dev]
|
||||||
lab-dev-1
|
lab-dev-1
|
||||||
lab-dev-2
|
lab-dev-2
|
||||||
|
lab-dev-3
|
||||||
|
|
||||||
[dev:vars]
|
[dev:vars]
|
||||||
ansible_python_interpreter=/usr/bin/python2
|
ansible_python_interpreter=/usr/bin/python2
|
||||||
|
|
||||||
|
|
||||||
[uat]
|
[test]
|
||||||
lab-uat-1
|
lab-test-1
|
||||||
lab-uat-2
|
lab-test-2
|
||||||
|
lab-test-3
|
||||||
|
|
||||||
|
[test:vars]
|
||||||
|
ansible_python_interpreter=/usr/bin/python3
|
||||||
|
|
||||||
|
|
||||||
[prod]
|
[prod]
|
||||||
lab-prod-1
|
lab-prod-1
|
||||||
lab-prod-2
|
lab-prod-2
|
||||||
|
lab-prod-3
|
||||||
|
|
||||||
[prod:vars]
|
[prod:vars]
|
||||||
ansible_python_interpreter=/usr/bin/python3
|
ansible_python_interpreter=/usr/bin/python3
|
||||||
|
@ -34,7 +34,4 @@
|
|||||||
include_tasks: tasks/long_running_tasks.yml
|
include_tasks: tasks/long_running_tasks.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
15
update-hosts.yml
Normal file
15
update-hosts.yml
Normal 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
|
||||||
|
|
||||||
|
|
||||||
|
...
|
Reference in New Issue
Block a user