<?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 Re: ansible initial configuration in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218401#M1708</link>
    <description>&lt;P&gt;Garfield is right, without connection: local Ansible will try to SSH into the firewall.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a working example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw_mgtconfig.yml" target="_blank"&gt;https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw_mgtconfig.yml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2018 17:51:46 GMT</pubDate>
    <dc:creator>ibojer</dc:creator>
    <dc:date>2018-06-19T17:51:46Z</dc:date>
    <item>
      <title>ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/201337#M1594</link>
      <description>&lt;P&gt;Hello all - I have a factory-reset 3020 I'm trying to access via ansible to do inital configuration. I installed ansible galaxy on my mac and I'm running version 2.4.3.0 of ansible. I am able to connect but it doesn't appear to do anything in the playbook. Any help is appreciated - here's the relevant configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;$ ansible --version&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ansible 2.4.3.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;config file = /Users/rniemes/dev/ansible/ansible.cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;configured module search path = [u'/Users/rniemes/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;ansible python module location = /usr/local/Cellar/ansible/2.4.3.0/libexec/lib/python2.7/site-packages/ansible&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;executable location = /usr/local/bin/ansible&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;python version = 2.7.10 (default, Feb&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Here's my ansible.cfg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;rniemes$ more ansible.cfg &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[defaults]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;remote_user = admin&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ask_pass = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;firewalls.yaml:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;- hosts: firewalls&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;gather_facts: False&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;tasks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;- name: set dns and panorama&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;panos_mgtconfig:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;name: set stuff&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;dns_server_primary: "1.1.1.1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;When I run ansible-playbook it doesn't appear to do anything but login:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;rniemes$ ansible-playbook -vvvv firewalls.yaml -i hosts &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;ansible-playbook 2.4.3.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;config file = /Users/rniemes/dev/ansible/ansible.cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;configured module search path = [u'/Users/rniemes/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;ansible python module location = /usr/local/Cellar/ansible/2.4.3.0/libexec/lib/python2.7/site-packages/ansible&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;executable location = /usr/local/bin/ansible-playbook&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;python version = 2.7.10 (default, Feb&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;Using /Users/rniemes/dev/ansible/ansible.cfg as config file&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;SSH password: &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;setting up inventory plugins&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;Parsed /Users/rniemes/dev/ansible/hosts inventory source with ini plugin&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;Loading callback plugin default of type stdout, v2.0 from /usr/local/Cellar/ansible/2.4.3.0/libexec/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;PLAYBOOK: firewalls.yaml *****************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;1 plays in firewalls.yaml&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;PLAY [firewalls] *************************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;META: ran handlers&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;TASK [set dns and panorama] **************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s1"&gt;task path: /Users/rniemes/dev/ansible/firewalls.yaml:5&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;Using module file /usr/local/Cellar/ansible/2.4.3.0/libexec/lib/python2.7/site-packages/ansible/modules/network/panos/panos_mgtconfig.py&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;lt;10.18.8.65&amp;gt; ESTABLISH CONNECTION FOR USER: admin on PORT 22 TO 10.18.8.65&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&amp;lt;10.18.8.65&amp;gt; EXEC /bin/sh -c 'echo ~ &amp;amp;&amp;amp; sleep 0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;I see an open session after doing this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;admin@PA-3020&amp;gt; show admins&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Admin &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;From &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Client Session-start&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Idle-for &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;--------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;admin&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;10.16.251.231&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;CLI 02/20 07:00:32 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;00:00:00s&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;admin&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;10.16.251.231&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;CLI 02/20 07:01:03 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;00:00:04s&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:26:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/201337#M1594</guid>
      <dc:creator>ryanniemes</dc:creator>
      <dc:date>2018-02-20T14:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/214944#M1671</link>
      <description>&lt;P&gt;Hi ryanniemes&lt;SPAN class=""&gt;，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I got the same issue.&amp;nbsp; &amp;nbsp;I tried accessing with both username+password&amp;nbsp; as well as certificate based authentication, neither works.&amp;nbsp; I also tried on PAN-OS 8.1 and 8.0 but with same result.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;My ansible version is 2.5.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you resovled this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regars,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 23:56:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/214944#M1671</guid>
      <dc:creator>samzhang</dc:creator>
      <dc:date>2018-05-21T23:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218299#M1700</link>
      <description>&lt;P&gt;Same problem here.&amp;nbsp; Has anyone solved this yet?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 21:45:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218299#M1700</guid>
      <dc:creator>bkeifer</dc:creator>
      <dc:date>2018-06-18T21:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218300#M1701</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do the logs on the firewall UI show that there was an operation attemtped? I'm curious to understand if the ansible framework is actually able to reach into the firewalls at all?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, can you guys verify that you can ssh into the firewall (depending upon the mgmt config / profile) with the username and password?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 21:49:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218300#M1701</guid>
      <dc:creator>vvenkatara</dc:creator>
      <dc:date>2018-06-18T21:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218301#M1702</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;Right now, the best way to use Ansible is with the Ansible Galaxy Palo Alto Networks role.&amp;nbsp; Palo Alto Networks has been updating the role more frequently than what libraries come with "pip install ansible" due to&amp;nbsp;ease of&amp;nbsp;getting code to users faster.&amp;nbsp; So, I'd recommending using the role first and foremost:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ansible-galaxy install PaloAltoNetworks.paloaltonetworks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Once you're using that, you need to tell your playbook to use that role.&amp;nbsp; You do that like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;roles:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - role:&amp;nbsp; PaloAltoNetworks.paloaltonetworks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Now that you're using the role, you actually need to be telling the module "panos_mgtconfig" what the authentication credentials of your firewall are, as vvenkatara hinted at.&amp;nbsp; There are "ip_address", "username", "password", and "api_key" params that the "panos_mgtconfig" module is expecting in your playbook so that it knows how to connect to your PAN-OS system.&amp;nbsp; Full documentation for Ansible is on readthedocs (as well as the instructions for installing the ansible-galaxy role):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://panwansible.readthedocs.io/en/latest/" target="_blank"&gt;http://panwansible.readthedocs.io/en/latest/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 21:57:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218301#M1702</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2018-06-18T21:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218303#M1703</link>
      <description>&lt;P&gt;I'm doing all that.&amp;nbsp; It hangs at:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt; TASK [PaloAltoNetworks.paloaltonetworks : pip] &amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;task path: /Users/brian/.ansible/roles/PaloAltoNetworks.paloaltonetworks/tasks/main.yml:5&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The contents of the playbook are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;- hosts: azfw02.domain.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; gather_facts: False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; roles:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; - role: PaloAltoNetworks.paloaltonetworks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; tasks:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; - name: Set DNS Servers&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; panos_mgtconfig:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ip_address: '{{ mgmt_ip }}'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; username: 'admin'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; password: 'secretpasswordhere'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; dns_server_primary: "10.1.1.94"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:30:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218303#M1703</guid>
      <dc:creator>bkeifer</dc:creator>
      <dc:date>2018-06-18T22:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218305#M1704</link>
      <description>&lt;P&gt;The firewall UI logs show an SSH connection, but not the change to the DNS servers.&amp;nbsp; The username/password works from the command line.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 22:36:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218305#M1704</guid>
      <dc:creator>bkeifer</dc:creator>
      <dc:date>2018-06-18T22:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218386#M1705</link>
      <description>&lt;P&gt;So it looks like it's not even getting to your tasks.&amp;nbsp; What do you see if you run `ansible-playbook` with -vvv to increase the verbosity?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:02:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218386#M1705</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2018-06-19T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218393#M1706</link>
      <description>&lt;PRE&gt;$ ansible-playbook -vvv --ask-pass go.yml
ansible-playbook 2.5.5
  config file = None
  configured module search path = [u'/Users/brian/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Library/Python/2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 2.7.10 (default, Oct  6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
No config file found; using defaults
SSH password:
Parsed /Users/brian/playbooks/azure_pan/hosts inventory source with ini plugin
 __________________
&amp;lt; PLAYBOOK: go.yml &amp;gt;
 ------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

1 plays in go.yml
 _______________________________
&amp;lt; PLAY [azfw02.domain.com] &amp;gt;
 -------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

META: ran handlers
 ________________________________________________
&amp;lt; TASK [PaloAltoNetworks.paloaltonetworks : pip] &amp;gt;
 ------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

task path: /Users/brian/.ansible/roles/PaloAltoNetworks.paloaltonetworks/tasks/main.yml:5
Using module file /Library/Python/2.7/site-packages/ansible/modules/packaging/language/pip.py
&amp;lt;azfw02.domain.com&amp;gt; ESTABLISH CONNECTION FOR USER: admin on PORT 22 TO azfw02.ops.desales.edu
&amp;lt;azfw02.domain.com&amp;gt; EXEC /bin/sh -c 'echo ~admin &amp;amp;&amp;amp; sleep 0'&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:21:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218393#M1706</guid>
      <dc:creator>bkeifer</dc:creator>
      <dc:date>2018-06-19T17:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218398#M1707</link>
      <description>&lt;P&gt;I think you&amp;nbsp;are missing "connection: local" in your playbook.&amp;nbsp; Without that, you're telling ansible to SSH to PAN-OS, then it's trying to execute the modules there, which won't work.&amp;nbsp; I think this is why you see a bunch of SSH connections to your PAN-OS, which is wrong, as the Ansible modules connect via API, not SSH.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:49:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218398#M1707</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2018-06-19T17:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: ansible initial configuration</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218401#M1708</link>
      <description>&lt;P&gt;Garfield is right, without connection: local Ansible will try to SSH into the firewall.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a working example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw_mgtconfig.yml" target="_blank"&gt;https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw_mgtconfig.yml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:51:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-initial-configuration/m-p/218401#M1708</guid>
      <dc:creator>ibojer</dc:creator>
      <dc:date>2018-06-19T17:51:46Z</dc:date>
    </item>
  </channel>
</rss>

