Skip to content

Instantly share code, notes, and snippets.

@tjtoml
Created July 8, 2020 18:12
Show Gist options
  • Save tjtoml/999d8e29cd97cbeb0c65265b1cde56b9 to your computer and use it in GitHub Desktop.
Save tjtoml/999d8e29cd97cbeb0c65265b1cde56b9 to your computer and use it in GitHub Desktop.
ansible_question
---
sites:
- name: site1
cust_num: 1234
- name: site2
cust_num: 4321
- name: Create DBs
postgresql_db:
name: db-{{ item.name }}-{{ item.cust_num }}
loop:
- "{{ sites }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment