diff --git a/ansible/docker.yml b/ansible/docker.yml new file mode 100644 index 0000000..b4c3769 --- /dev/null +++ b/ansible/docker.yml @@ -0,0 +1,5 @@ +--- +- hosts: docker-host + become: yes + roles: + - docker diff --git a/ansible/hosts b/ansible/hosts index d27c2ca..bb48d6e 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -19,6 +19,12 @@ sub.domain.com:22 sub.domain.com:22 127.0.0.1:22 +[nginx-server] +sub.domain.com:22 + +[docker-host] +127.0.0.1:22 + ## green.example.com ## blue.example.com ## 192.168.100.1 diff --git a/ansible/nginx.yml b/ansible/nginx.yml index 221040c..18be294 100644 --- a/ansible/nginx.yml +++ b/ansible/nginx.yml @@ -1,6 +1,5 @@ --- -- hosts: nginx +- hosts: nginx-server become: yes roles: - nginx - - core