From 26ae6b0c4c50978c781f7bc3fc0a37028643a407 Mon Sep 17 00:00:00 2001 From: HACKERMD Date: Mon, 26 Jun 2017 03:44:49 +0200 Subject: [PATCH] Automatically assign public IP when ``web`` tagged --- .../playbooks/tissuemaps/roles/cloud-instance/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmdeploy/share/playbooks/tissuemaps/roles/cloud-instance/tasks/main.yml b/tmdeploy/share/playbooks/tissuemaps/roles/cloud-instance/tasks/main.yml index 6ca5b68..67ad563 100644 --- a/tmdeploy/share/playbooks/tissuemaps/roles/cloud-instance/tasks/main.yml +++ b/tmdeploy/share/playbooks/tissuemaps/roles/cloud-instance/tasks/main.yml @@ -15,6 +15,9 @@ # along with this program. If not, see . --- +- set_fact: + assign_public_ip: "{{ 'web' in tags }}" + - include: "{{provider}}.yml" - name: Refresh dynamic inventory