Made separate files for different services.

Not sure if i'll keep going this way or find some other solution.
This commit is contained in:
Egon Rijpkema 2017-05-30 16:37:57 +02:00
parent 29b4f06ac7
commit 53d83c1bde
7 changed files with 37 additions and 6 deletions

5
common.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: all
become: True
roles:
- common

5
database.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: database
become: True
roles:
- mariadb

5
dockerregistry.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: dockerregistry
become: True
roles:
- dockerregistry

5
keystone.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: keystone
become: True
roles:
- keystone

View File

@ -1,7 +1,6 @@
---
# Run all plays as root.
- hosts: rabbitmq
become: True
roles:
- common
- rabbitmq
- include: common.yml
- include: database.yml
- include: dockerregistry.yml
- include: mariadb.yml
- include: rabbitmq.yml

7
mariadb.yml Normal file
View File

@ -0,0 +1,7 @@
---
# Run all plays as root.
- hosts: databases
become: True
roles:
- common
- mariadb

5
rabbitmq.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: rabbitmq
become: True
roles:
- rabbitmq