From d86946ec21f2175d3a5aad58c1ae236291c74b7a Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 15 Oct 2022 09:19:58 -0400 Subject: Initialize docker vars later --- docker-playbook.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docker-playbook.yml b/docker-playbook.yml index be8472b..dc29381 100644 --- a/docker-playbook.yml +++ b/docker-playbook.yml @@ -1,6 +1,6 @@ --- - name: Load vars - hosts: all + hosts: localhost tags: always tasks: - include_vars: @@ -18,13 +18,6 @@ published_ports: - "28080:80" - "2022:22" - -- name: Provision the emacsconf-front container created above - tags: wiki - hosts: emacsconf-front - roles: - - wiki - - name: Create a pad container to be provisioned later tags: pad hosts: localhost @@ -38,6 +31,19 @@ published_ports: - "9001:9001" +- name: Load vars + hosts: all + tags: always + tasks: + - include_vars: + file: docker-vars.yml + +- name: Provision the emacsconf-front container created above + tags: wiki + hosts: emacsconf-front + roles: + - wiki + - name: Provision the pad container created above tags: pad hosts: emacsconf-pad -- cgit v1.2.3