|
76 | 76 | ansible_user: "{{ item.tags.username }}"
|
77 | 77 | ansible_port: "{{ ssh_port }}"
|
78 | 78 | ansible_ssh_private_key_file: "{{ playbook_dir }}/{{ec2_name_prefix}}/{{ec2_name_prefix}}-private.pem"
|
79 |
| - private_ip: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.netcommon.ipaddr('172.16.0.0/16')|first }}" |
80 |
| - private_ip2: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.netcommon.ipaddr('172.17.0.0/16')|first }}" |
| 79 | + private_ip: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.utils.ipaddr('172.16.0.0/16')|first }}" |
| 80 | + private_ip2: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.utils.ipaddr('172.17.0.0/16')|first }}" |
81 | 81 | groups:
|
82 | 82 | - security
|
83 | 83 | - security_connection_check
|
|
111 | 111 | ansible_user: "{{ item.tags.username }}"
|
112 | 112 | ansible_port: "{{ ssh_port }}"
|
113 | 113 | ansible_ssh_private_key_file: "{{ playbook_dir }}/{{ec2_name_prefix}}/{{ec2_name_prefix}}-private.pem"
|
114 |
| - private_ip: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.netcommon.ipaddr('172.16.0.0/16')|first }}" |
115 |
| - private_ip2: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.netcommon.ipaddr('172.17.0.0/16')|first }}" |
| 114 | + private_ip: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.utils.ipaddr('172.16.0.0/16')|first }}" |
| 115 | + private_ip2: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.utils.ipaddr('172.17.0.0/16')|first }}" |
116 | 116 | groups:
|
117 | 117 | - security
|
118 | 118 | - security_connection_check
|
|
164 | 164 | ansible_user: "{{ item.tags.username }}"
|
165 | 165 | ansible_port: "{{ ssh_port }}"
|
166 | 166 | ansible_ssh_private_key_file: "{{ playbook_dir }}/{{ec2_name_prefix}}/{{ec2_name_prefix}}-private.pem"
|
167 |
| - private_ip: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.netcommon.ipaddr('172.16.0.0/16')|first }}" |
168 |
| - private_ip2: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.netcommon.ipaddr('172.17.0.0/16')|first }}" |
| 167 | + private_ip: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.utils.ipaddr('172.16.0.0/16')|first }}" |
| 168 | + private_ip2: "{{ item['network_interfaces']|map(attribute='private_ip_address')|list|ansible.utils.ipaddr('172.17.0.0/16')|first }}" |
169 | 169 | groups:
|
170 | 170 | - security
|
171 | 171 | - checkpoint
|
|
0 commit comments