fix asg/lc names
[awsible] / roles / launchconfig / tasks / main.yml
index ced0bcd16dc8f2ae742429f6fc149fc85bde69af..bf0510f730e004ba0beb0773168f56920d05bcf2 100644 (file)
 - set_fact:
     ud_cluster:
     - "{{ module }}"
-    - "{{ (country|default() != '')|ternary('c0', '') }}{{ country|default('') }}"
-    - "{{ (phase|default() != '')|ternary('d0', '') }}{{ phase|default('') }}"
+    - "{{ country|default()|ternary('c0', '') }}{{ country|default() }}"
+    - "{{ phase|default()|ternary('d0', '') }}{{ phase|default() }}"
 
 - set_fact:
     ud_asgn:
     - "{{ module }}"
-    - "{{ stack|default('') }}"
-    - "{{ (country|default() != '')|ternary('c0', '') }}{{ country|default('') }}"
-    - "{{ (phase|default() != '')|ternary('d0', '') }}{{ phase|default('') }}"
+    - "{{ stack|default() }}"
+    - "{{ country|default()|ternary('c0', '') }}{{ country|default() }}"
+    - "{{ phase|default()|ternary('d0', '') }}{{ phase|default() }}"
 
 - set_fact:
     lc_n:
     - "{{ module }}"
-    - "{{ stack|default('') }}"
-    - "{{ (country|default() != '')|ternary('c0', '') }}{{ country|default('') }}"
-    - "{{ (phase|default() != '')|ternary('d0', '') }}{{ phase|default('') }}"
+    - "{{ stack|default() }}"
+    - "{{ country|default()|ternary('c0', '') }}{{ country|default() }}"
+    - "{{ phase|default()|ternary('d0', '') }}{{ phase|default() }}"
     - "{{ version }}"
 
 - name: assemble user data