Update example playbooks for using new roles
This commit is contained in:
5
ansible/docker.yml
Normal file
5
ansible/docker.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- hosts: docker-host
|
||||||
|
become: yes
|
||||||
|
roles:
|
||||||
|
- docker
|
||||||
@@ -19,6 +19,12 @@ sub.domain.com:22
|
|||||||
sub.domain.com:22
|
sub.domain.com:22
|
||||||
127.0.0.1:22
|
127.0.0.1:22
|
||||||
|
|
||||||
|
[nginx-server]
|
||||||
|
sub.domain.com:22
|
||||||
|
|
||||||
|
[docker-host]
|
||||||
|
127.0.0.1:22
|
||||||
|
|
||||||
## green.example.com
|
## green.example.com
|
||||||
## blue.example.com
|
## blue.example.com
|
||||||
## 192.168.100.1
|
## 192.168.100.1
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: nginx
|
- hosts: nginx-server
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- nginx
|
- nginx
|
||||||
- core
|
|
||||||
|
|||||||
Reference in New Issue
Block a user