<?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 &amp;quot;set&amp;quot; instructions not working when using Ansible PANOS_OP to update Panorama Addresses group in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/261974#M1932</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is another issue I am encounting with PANOS Ansible's module. This time when using "PANOS_OP" into Panorama to add a static address into a group. This is the error I am getting when executing "cmd: set device-group MYCLOUD address-group MYCLOUD-GRP-1 static SMTP-10.10.20.30" in playbook:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fatal: [10.10.10.10]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"invocation": {&lt;BR /&gt;"module_args": {&lt;BR /&gt;"api_key": null,&lt;BR /&gt;"cmd": "set device-group MYCLOUD address-group MYCLOUD-GRP-1 static SMTP-10.10.20.30",&lt;BR /&gt;"cmd_is_xml": false,&lt;BR /&gt;"ip_address": "10.10.10.10",&lt;BR /&gt;"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"username": "pan_ansible"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;MSG:&lt;/P&gt;&lt;P&gt;Failed to run command : set device-group MYCLOUD address-group MYCLOUD-GRP-1 static "CLOUD-10.10.20.30" : set -&amp;gt; device-group is unexpected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know what is the solution to add more IP addresses to an Address group.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My playbook is pretty simple; however, I am unable to find the error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 18:32:58 GMT</pubDate>
    <dc:creator>RobertNunez</dc:creator>
    <dc:date>2019-05-22T18:32:58Z</dc:date>
    <item>
      <title>"set" instructions not working when using Ansible PANOS_OP to update Panorama Addresses group</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/261974#M1932</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is another issue I am encounting with PANOS Ansible's module. This time when using "PANOS_OP" into Panorama to add a static address into a group. This is the error I am getting when executing "cmd: set device-group MYCLOUD address-group MYCLOUD-GRP-1 static SMTP-10.10.20.30" in playbook:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fatal: [10.10.10.10]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"invocation": {&lt;BR /&gt;"module_args": {&lt;BR /&gt;"api_key": null,&lt;BR /&gt;"cmd": "set device-group MYCLOUD address-group MYCLOUD-GRP-1 static SMTP-10.10.20.30",&lt;BR /&gt;"cmd_is_xml": false,&lt;BR /&gt;"ip_address": "10.10.10.10",&lt;BR /&gt;"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"username": "pan_ansible"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;MSG:&lt;/P&gt;&lt;P&gt;Failed to run command : set device-group MYCLOUD address-group MYCLOUD-GRP-1 static "CLOUD-10.10.20.30" : set -&amp;gt; device-group is unexpected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know what is the solution to add more IP addresses to an Address group.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My playbook is pretty simple; however, I am unable to find the error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roberto&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:32:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/261974#M1932</guid>
      <dc:creator>RobertNunez</dc:creator>
      <dc:date>2019-05-22T18:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: "set" instructions not working when using Ansible PANOS_OP to update Panorama Addresse</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/262390#M1938</link>
      <description>&lt;P&gt;Please make sure you are using the Ansible modules for PAN-OS that are published to Ansible Galaxy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://galaxy.ansible.com/paloaltonetworks/paloaltonetworks" target="_blank"&gt;https://galaxy.ansible.com/paloaltonetworks/paloaltonetworks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The modules bundles with Ansible Engine are old and are being deprecated.&amp;nbsp; The modules in Ansible Galaxy have all the latest features and bug fixes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Bob-&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 13:30:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/262390#M1938</guid>
      <dc:creator>rhagen</dc:creator>
      <dc:date>2019-05-28T13:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: "set" instructions not working when using Ansible PANOS_OP to update Panorama Addresse</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/262421#M1940</link>
      <description>&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;I did install and reinstall PANOS galaxy many times before; however the error still happening. Here is my playbook:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;- name: Adding IP address to an address group&lt;BR /&gt;connection: local&lt;BR /&gt;hosts: sfopanorama&lt;BR /&gt;gather_facts: yes&lt;BR /&gt;vars:&lt;BR /&gt;description: 'Task_Number_1234567'&lt;BR /&gt;firewall_host: '10.10.10.10'&lt;BR /&gt;server_address: '10.10.1.3'&lt;BR /&gt;address_group: 'MYTTP-GW-2'&lt;BR /&gt;dev_group: 'MLG'&lt;BR /&gt;address_mask: 'ip-netmask'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;roles:&lt;BR /&gt;- role: PaloAltoNetworks.paloaltonetworks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tasks:&lt;BR /&gt;- name: Add IP Address to Address Group {{ dev_group }}&lt;BR /&gt;panos_op:&lt;BR /&gt;ip_address: '{{ firewall_host }}'&lt;BR /&gt;username: '{{ pan_username }}'&lt;BR /&gt;password: '{{ pan_password }}'&lt;BR /&gt;cmd: 'configure'&lt;BR /&gt;cmd: 'set device-group {{ dev_group }} address-group {{ address_group }} static SMTP-{{ server_address }}'&lt;BR /&gt;register: result_output2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I tried with and without the "configure" option, and changing the way the "set device-group" options;&lt;/SPAN&gt; &lt;SPAN&gt;However, none of them works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the only solution that can solve the "Panos_address_group" problem that I mentioned earlier.&lt;/SPAN&gt; &lt;SPAN class=""&gt;If only I can make it work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Roberto&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 16:56:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/quot-set-quot-instructions-not-working-when-using-ansible-panos/m-p/262421#M1940</guid>
      <dc:creator>RobertNunez</dc:creator>
      <dc:date>2019-05-28T16:56:38Z</dc:date>
    </item>
  </channel>
</rss>

