Add hosts to site.yml
This commit is contained in:
23
site.yml
23
site.yml
@@ -3,24 +3,33 @@
|
||||
user: root
|
||||
become: False
|
||||
roles:
|
||||
- common
|
||||
- backup
|
||||
- common
|
||||
- backup
|
||||
|
||||
- hosts: backupclient
|
||||
user: root
|
||||
become: False
|
||||
roles:
|
||||
- common
|
||||
- backupclient
|
||||
- common
|
||||
- backupclient
|
||||
|
||||
- hosts: ruby
|
||||
become: true
|
||||
roles:
|
||||
- common
|
||||
- rvm1-ansible
|
||||
- common
|
||||
- rvm1-ansible
|
||||
|
||||
- hosts: test_common
|
||||
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:
|
||||
- common
|
||||
|
||||
# - rvm1-ansible
|
||||
- ariane
|
||||
|
||||
Reference in New Issue
Block a user