From 0de49174e6a2d7e68f1cf6c3f095487a2806f643 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Wed, 9 Dec 2020 19:21:48 +0100 Subject: [PATCH] Split main playbook into all and tau.netz39.de --- main.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/main.yml b/main.yml index b7e69e3..90e5093 100644 --- a/main.yml +++ b/main.yml @@ -1,13 +1,10 @@ --- -- hosts: tau +- hosts: all become: true vars: ansible_python_interpreter: /usr/bin/python3 - docker_compose_version: "1.25.4" - docker_compose_path: /usr/local/bin/docker-compose - roles: - role: ansible.timezone @@ -37,10 +34,21 @@ include_role: name: users - - name: Install Docker - include_role: - name: install-docker + +- hosts: tau.netz39.de + become: true + + vars: + ansible_python_interpreter: /usr/bin/python3 + + docker_compose_version: "1.25.4" + docker_compose_path: /usr/local/bin/docker-compose + + roles: + - role: install-docker + + tasks: - name: Setup Docker Environment include_tasks: tasks/docker_env.yml