Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dancorrigan1 committed Nov 27, 2024
1 parent e07b169 commit e931df8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tasks/dailyconnections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,15 @@
label: >-
Adding '{{ item.1 }}' to IP user file for '{{ item.0.user }}'
- name: "Check which subelements caused changes"
- name: Debug
ansible.builtin.debug:
msg: >
"For user {{ item.0.user }}, adding IP {{ item.1 }}: {{ 'changed' if item.2.changed else 'unchanged' }}"
loop: "{{ __unique_user_ips | subelements('ip_list') | zip(__add_ip.results) | map('list') | list }}"
var: __unique_user_ips | subelements('ip_list') | zip(__add_ip.results)

# - name: "Check which subelements caused changes"
# ansible.builtin.debug:
# msg: >
# "For user {{ item.0.user }}, adding IP {{ item.1 }}: {{ 'changed' if item.2.changed else 'unchanged' }}"
# loop: "{{ __unique_user_ips | subelements('ip_list') | zip(__add_ip.results) | map('list') | list }}"


# - debug:
Expand Down

0 comments on commit e931df8

Please sign in to comment.