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,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
gather_facts: False
tasks:
- 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
raw: test -e /usr/bin/python3 || (apt-get update && apt-get install -y python3)
- hosts: ariane
roles:
- common
- ariane
# - rvm1-ansible
raw: test -e /usr/bin/python3 || (apt-get update && apt-get install -y python3) || (xbps-install -S && xbps-install python)
- hosts: fet
roles:
- common
- common
- hosts: ariane
roles:
- ariane
# - rvm1-ansible
- hosts: betam
roles:
- ups
- ups
- hosts: backup
roles:
- backup
- hosts: backupclient
roles:
- backupclient
- hosts: ruby
become: True
roles:
- rvm1-ansible
- hosts: test_common
become: True