Add hosts to site.yml
This commit is contained in:
23
site.yml
23
site.yml
@@ -3,24 +3,33 @@
|
|||||||
user: root
|
user: root
|
||||||
become: False
|
become: False
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
- backup
|
- backup
|
||||||
|
|
||||||
- hosts: backupclient
|
- hosts: backupclient
|
||||||
user: root
|
user: root
|
||||||
become: False
|
become: False
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
- backupclient
|
- backupclient
|
||||||
|
|
||||||
- hosts: ruby
|
- hosts: ruby
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
- rvm1-ansible
|
- rvm1-ansible
|
||||||
|
|
||||||
- hosts: test_common
|
- hosts: test_common
|
||||||
sudo: True
|
sudo: True
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: False
|
||||||
|
tasks:
|
||||||
|
- name: install python3
|
||||||
|
raw: test -e /usr/bin/python3 || (apt-get update && apt-get install -y python3)
|
||||||
|
|
||||||
|
- hosts: ariane
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
|
# - rvm1-ansible
|
||||||
|
- ariane
|
||||||
|
|||||||
Reference in New Issue
Block a user