<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ansible module panos_ha support NGFW-VM series on AWS in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-panos-ha-support-ngfw-vm-series-on-aws/m-p/412863#M2693</link>
    <description>&lt;P&gt;Trying to use ansible setup HA pair in the AWS same availability zone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But got error: "IndexError: list index out of range", any suggestions please? The github issue report on HA looks no one response for a long time... Big Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The NGFW-VM documentation over GUI, it demands to use management port for the HA1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Playbook:&lt;/P&gt;&lt;P&gt;##############&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;- hosts: localhost&lt;BR /&gt;connection: local&lt;BR /&gt;gather_facts: no&lt;/P&gt;&lt;P&gt;collections:&lt;BR /&gt;- paloaltonetworks.panos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tasks:&lt;BR /&gt;- name: Include variables&lt;BR /&gt;include_vars: provider.yml&lt;BR /&gt;no_log: yes&lt;/P&gt;&lt;P&gt;- name: Set primary HA port&lt;BR /&gt;panos_interface:&lt;BR /&gt;provider: '{{ primary }}'&lt;BR /&gt;state: present&lt;BR /&gt;if_name: '{{ item }}'&lt;BR /&gt;mode: "ha"&lt;BR /&gt;enable_dhcp: false&lt;BR /&gt;with_items:&lt;BR /&gt;- ethernet1/1&lt;/P&gt;&lt;P&gt;- name: Config primary control links&lt;BR /&gt;panos_ha:&lt;BR /&gt;provider: '{{ primary }}'&lt;BR /&gt;state: present&lt;BR /&gt;ha_peer_ip: "10.2.240.252"&lt;BR /&gt;ha1_ip_address: "10.2.240.236"&lt;BR /&gt;ha1_netmask: "255.255.255.0"&lt;BR /&gt;ha1_port: "ethernet0/0"&lt;BR /&gt;ha2_port: "ethernet1/1"&lt;BR /&gt;#############################&lt;/P&gt;&lt;P&gt;The ansible error below:&lt;/P&gt;&lt;P&gt;#############################&lt;/P&gt;&lt;P&gt;(.venv) 14:26 % ansible-playbook -i 127.0.0.1, -e "ansible_python_interpreter=$(which python)" vm-ha.yml&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLAY [localhost] ***************************************************************************************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Include variables] *******************************************************************************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1]&lt;/P&gt;&lt;P&gt;TASK [Set primary HA port] *****************************************************************************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1] =&amp;gt; (item=ethernet1/1)&lt;/P&gt;&lt;P&gt;TASK [Config primary control links] ********************************************************************************************************************************************************************************************************&lt;BR /&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IndexError: list index out of range&lt;BR /&gt;fatal: [127.0.0.1]: FAILED! =&amp;gt; {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/Users/jozhou/.ansible/tmp/ansible-tmp-1623619631.2409449-82377-159027178184794/AnsiballZ_panos_ha.py\", line 100, in &amp;lt;module&amp;gt;\n _ansiballz_main()\n File \"/Users/jozhou/.ansible/tmp/ansible-tmp-1623619631.2409449-82377-159027178184794/AnsiballZ_panos_ha.py\", line 92, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/jozhou/.ansible/tmp/ansible-tmp-1623619631.2409449-82377-159027178184794/AnsiballZ_panos_ha.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.paloaltonetworks.panos.plugins.modules.panos_ha', init_globals=dict(_module_fqn='ansible_collections.paloaltonetworks.panos.plugins.modules.panos_ha', _modlib_path=modlib_path),\n File \"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/var/folders/qy/dvxp9_ps17z3k5_nmy95vt6mzsqgps/T/ansible_panos_ha_payload_zsopcaxw/ansible_panos_ha_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_ha.py\", line 452, in &amp;lt;module&amp;gt;\n File \"/var/folders/qy/dvxp9_ps17z3k5_nmy95vt6mzsqgps/T/ansible_panos_ha_payload_zsopcaxw/ansible_panos_ha_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_ha.py\", line 439, in main\nIndexError: list index out of range\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}&lt;/P&gt;&lt;P&gt;PLAY RECAP *********************************************************************************************************************************************************************************************************************************&lt;BR /&gt;127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jun 2021 21:47:17 GMT</pubDate>
    <dc:creator>JZhou4</dc:creator>
    <dc:date>2021-06-13T21:47:17Z</dc:date>
    <item>
      <title>ansible module panos_ha support NGFW-VM series on AWS</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-panos-ha-support-ngfw-vm-series-on-aws/m-p/412863#M2693</link>
      <description>&lt;P&gt;Trying to use ansible setup HA pair in the AWS same availability zone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But got error: "IndexError: list index out of range", any suggestions please? The github issue report on HA looks no one response for a long time... Big Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The NGFW-VM documentation over GUI, it demands to use management port for the HA1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Playbook:&lt;/P&gt;&lt;P&gt;##############&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;- hosts: localhost&lt;BR /&gt;connection: local&lt;BR /&gt;gather_facts: no&lt;/P&gt;&lt;P&gt;collections:&lt;BR /&gt;- paloaltonetworks.panos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tasks:&lt;BR /&gt;- name: Include variables&lt;BR /&gt;include_vars: provider.yml&lt;BR /&gt;no_log: yes&lt;/P&gt;&lt;P&gt;- name: Set primary HA port&lt;BR /&gt;panos_interface:&lt;BR /&gt;provider: '{{ primary }}'&lt;BR /&gt;state: present&lt;BR /&gt;if_name: '{{ item }}'&lt;BR /&gt;mode: "ha"&lt;BR /&gt;enable_dhcp: false&lt;BR /&gt;with_items:&lt;BR /&gt;- ethernet1/1&lt;/P&gt;&lt;P&gt;- name: Config primary control links&lt;BR /&gt;panos_ha:&lt;BR /&gt;provider: '{{ primary }}'&lt;BR /&gt;state: present&lt;BR /&gt;ha_peer_ip: "10.2.240.252"&lt;BR /&gt;ha1_ip_address: "10.2.240.236"&lt;BR /&gt;ha1_netmask: "255.255.255.0"&lt;BR /&gt;ha1_port: "ethernet0/0"&lt;BR /&gt;ha2_port: "ethernet1/1"&lt;BR /&gt;#############################&lt;/P&gt;&lt;P&gt;The ansible error below:&lt;/P&gt;&lt;P&gt;#############################&lt;/P&gt;&lt;P&gt;(.venv) 14:26 % ansible-playbook -i 127.0.0.1, -e "ansible_python_interpreter=$(which python)" vm-ha.yml&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLAY [localhost] ***************************************************************************************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Include variables] *******************************************************************************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1]&lt;/P&gt;&lt;P&gt;TASK [Set primary HA port] *****************************************************************************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1] =&amp;gt; (item=ethernet1/1)&lt;/P&gt;&lt;P&gt;TASK [Config primary control links] ********************************************************************************************************************************************************************************************************&lt;BR /&gt;An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IndexError: list index out of range&lt;BR /&gt;fatal: [127.0.0.1]: FAILED! =&amp;gt; {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/Users/jozhou/.ansible/tmp/ansible-tmp-1623619631.2409449-82377-159027178184794/AnsiballZ_panos_ha.py\", line 100, in &amp;lt;module&amp;gt;\n _ansiballz_main()\n File \"/Users/jozhou/.ansible/tmp/ansible-tmp-1623619631.2409449-82377-159027178184794/AnsiballZ_panos_ha.py\", line 92, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/jozhou/.ansible/tmp/ansible-tmp-1623619631.2409449-82377-159027178184794/AnsiballZ_panos_ha.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.paloaltonetworks.panos.plugins.modules.panos_ha', init_globals=dict(_module_fqn='ansible_collections.paloaltonetworks.panos.plugins.modules.panos_ha', _modlib_path=modlib_path),\n File \"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 210, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/var/folders/qy/dvxp9_ps17z3k5_nmy95vt6mzsqgps/T/ansible_panos_ha_payload_zsopcaxw/ansible_panos_ha_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_ha.py\", line 452, in &amp;lt;module&amp;gt;\n File \"/var/folders/qy/dvxp9_ps17z3k5_nmy95vt6mzsqgps/T/ansible_panos_ha_payload_zsopcaxw/ansible_panos_ha_payload.zip/ansible_collections/paloaltonetworks/panos/plugins/modules/panos_ha.py\", line 439, in main\nIndexError: list index out of range\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}&lt;/P&gt;&lt;P&gt;PLAY RECAP *********************************************************************************************************************************************************************************************************************************&lt;BR /&gt;127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 21:47:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-module-panos-ha-support-ngfw-vm-series-on-aws/m-p/412863#M2693</guid>
      <dc:creator>JZhou4</dc:creator>
      <dc:date>2021-06-13T21:47:17Z</dc:date>
    </item>
  </channel>
</rss>

