From af0761000611cd27a0ea9e59f20f44cfdd59cf65 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Thu, 29 Aug 2019 07:37:55 +0000 Subject: [PATCH] Update example playbooks for using new roles --- ansible/docker.yml | 5 +++++ ansible/hosts | 6 ++++++ ansible/nginx.yml | 3 +-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 ansible/docker.yml 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