Created
July 9, 2020 14:16
-
-
Save tjtoml/9e396213805c6775d44269770fef70d2 to your computer and use it in GitHub Desktop.
Variables in conditional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Apply the .sql scripts to create the database tables | |
postgresql_query: | |
db: vendor-{{ item.0.name }}-{{ item.0.cust_num }} | |
path_to_script: "{{ item.1.path }}" | |
loop: "{{ vendor_sites|product(table_scripts.files)|list }}" | |
loop_control: | |
label: "{{ item.0.name }}-{{ item.0.cust_num }} - {{ item.1.path|regex_search('[^/]*$') }}" | |
when: table-{{ item.0.name }}-{{ item.0.cust_num }}-{{ item.1.path|regex_search('[^/]*$') }} not in db_flag_files.files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment