package, Reorder site.yml

This commit is contained in:
Daniel A. Maierhofer
2018-03-05 23:46:40 +01:00
parent 0324fb0ec6
commit eff1dd94de
3 changed files with 28 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
[defaults] [defaults]
forks=2 forks=20
[privilege_escalation] [privilege_escalation]
ask_pass=True ask_pass=True
[ssh_connection] [ssh_connection]

View File

@@ -1,45 +1,37 @@
--- ---
- hosts: backup
user: root
become: False
roles:
- common
- backup
- hosts: backupclient
user: root
become: False
roles:
- common
- backupclient
- hosts: ruby
become: true
roles:
- common
- rvm1-ansible
- hosts: test_common
become: True
- hosts: all - hosts: all
gather_facts: False gather_facts: False
tasks: tasks:
- name: install python - name: install python
raw: test -e /usr/bin/python || (apt-get update && apt-get install -y python) raw: test -e /usr/bin/python || (apt-get update && apt-get install -y python) || (xbps-install -S && xbps-install python)
- name: install python3 - name: install python3
raw: test -e /usr/bin/python3 || (apt-get update && apt-get install -y python3) raw: test -e /usr/bin/python3 || (apt-get update && apt-get install -y python3) || (xbps-install -S && xbps-install python)
- hosts: ariane
roles:
- common
- ariane
# - rvm1-ansible
- hosts: fet - hosts: fet
roles: roles:
- common - common
- hosts: ariane
roles:
- ariane
# - rvm1-ansible
- hosts: betam - hosts: betam
roles: roles:
- ups - ups
- hosts: backup
roles:
- backup
- hosts: backupclient
roles:
- backupclient
- hosts: ruby
become: True
roles:
- rvm1-ansible
- hosts: test_common
become: True