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
--- | |
- hosts: localhost | |
gather_facts: True | |
tasks: | |
- name: test | |
debug: var="{{ hostvars[item] }}" | |
with_items: | |
"{{ groups['server'] }}" |
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
[server:vars] | |
ansible_port=5986 | |
ansible_connection=winrm | |
ansible_winrm_server_cert_validation=ignore |
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
data = [{'column': 'STORE_NO', 'value': 9001}, {'column': 'STORE_NAME', 'value': 'RE_Thrashing'}] | |
for item in data: | |
columns.append(item['column']) | |
values.append(item['value']) |
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
{% for store_env in store_list %} | |
{% if store_env == 'DEV' %} | |
system_count: | |
server: 1 | |
workstation: 1 | |
register: 1 | |
{% endif %} | |
{% endfor %} |
OlderNewer