L
- name: Debug combined list
debug:
var: >-
domain_list
| batch(ip_list|length)
| map('zip', ip_list)
| flatten(levels=1)
| map('join', ' ')Size: a a a
L
- name: Debug combined list
debug:
var: >-
domain_list
| batch(ip_list|length)
| map('zip', ip_list)
| flatten(levels=1)
| map('join', ' ')TG
map(attribute='device')A
- name: Debug combined list
debug:
var: >-
domain_list
| batch(ip_list|length)
| map('zip', ip_list)
| flatten(levels=1)
| map('join', ' ')TG
TG
V
map(attribute='device')
A
TG
TG
| listV
| listTG
L
- name: Debug combined list
debug:
var: >-
domain_list
| batch(ip_list|length)
| map('zip', ip_list)
| flatten(levels=1)
| map('join', ' ') - name: Debug combined list
debug:
var: >-
domain_list
| batch(ip_list|length)
| map('zip', ip_list)
| map('list')
| flatten(levels=1)
| map('join', ' ')
| listTG
- name: Debug combined list
debug:
var: >-
domain_list
| batch(ip_list|length)
| map('zip', ip_list)
| map('list')
| flatten(levels=1)
| map('join', ' ')
| listL
TG
L
- name: Check NGINX configs
command: 'nginx -t'
register: nginx_config_status
ignore_errors: no
check_mode: no
changed_when: false
listen:
- (Handler - NGINX Config) Run NGINX
- name: NGINX test status
debug:
msg: '{{ nginx_config_status }}'
listen:
- (Handler - NGINX Config) Run NGINX