From 61fc06e878b6896d56f56055b7ff99f209c1000d Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Thu, 29 Aug 2019 09:48:53 +0000 Subject: [PATCH] Add example playbook for using multiple roles together --- ansible/hosts | 3 +++ ansible/make-host.yml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 ansible/make-host.yml diff --git a/ansible/hosts b/ansible/hosts index bb48d6e..d360ea8 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -25,6 +25,9 @@ sub.domain.com:22 [docker-host] 127.0.0.1:22 +[dev] +sub.domain.com:22 + ## green.example.com ## blue.example.com ## 192.168.100.1 diff --git a/ansible/make-host.yml b/ansible/make-host.yml new file mode 100644 index 0000000..4c4e55d --- /dev/null +++ b/ansible/make-host.yml @@ -0,0 +1,8 @@ +--- +- hosts: dev + become: yes + roles: + - core + - docker + - nginx +