# PAN-OS \[panos\_content\]

**URL:** <https://forum.ansible.com/t/pan-os-panos-content/29693>\
**Category:** Ansible Project\
**Created:** [February 15, 2019, 11:55pm UTC](https://forum.ansible.com/t/pan-os-panos-content/29693 "2019-02-15T23:55:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudarshan\_V](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@Sudarshan\_V](https://forum.ansible.com/u/Sudarshan_V)\
**Post date:** [February 15, 2019, 11:55pm UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/1 "2019-02-15T23:55:39Z")

</div>

Hi All,

Hoping someone could help me with this.  
I have also raised this as an issue on Github, but have not received any feedback.

panos\_content modules fails with the below error message

"ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in ‘/mnt/c/Users/sudarshan kumar/Documents/XXXXXXXXXXXX/upgrade-firewall.yml’: line 15, column 7, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

```auto
- name: Upgrade anti-virus and wildfire
^ here

```

The play that I am running loos like

- name: Upgrade firewall  
hosts: paloalto  
connection: local  
gather\_facts: False  
vars:  
ip\_address: “x.x.x.x”  
username: “xxxxxx”  
password: “yyyyyyyy”  
roles:

- role: PaloAltoNetworks.paloaltonetworks

tasks:

- name: Upgrade anti-virus and wildfire  
panos\_content:  
ip\_address: “{{ ip\_address }}”  
usernaame: “{{ username }}”  
password: “{{ password }}”  
anti\_virus\_update: yes  
wildfire\_update: yes

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [February 16, 2019, 7:38am UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/2 "2019-02-16T07:38:33Z")

</div>

> Hi All,
> 
> Hoping someone could help me with this.  
> I have also raised this as an issue on Github, but have not received any  
> feedback.
> 
> panos\_content modules fails with the below error message
> 
> "ERROR! no action detected in task. This often indicates a misspelled  
> module name, or incorrect module path.
> 
> The error appears to have been in '/mnt/c/Users/sudarshan  
> kumar/Documents/XXXXXXXXXXXX/upgrade-firewall.yml': line 15, column 7, but  
> may  
> be elsewhere in the file depending on the exact syntax problem.
> 
> The offending line appears to be:
> 
> ```auto
> - name: Upgrade anti-virus and wildfire
> ^ here
> 
> ```
> 
> The play that I am running loos like
> 
> \* name: Upgrade firewall

You can't use \* you need to use dash -

> &nbsp;&nbsp;hosts: paloalto  
> &nbsp;&nbsp;connection: local  
> &nbsp;&nbsp;gather\_facts: False  
> &nbsp;&nbsp;vars:  
> &nbsp;&nbsp;ip\_address: "x.x.x.x"  
> &nbsp;&nbsp;username: "xxxxxx"  
> &nbsp;&nbsp;password: "yyyyyyyy"

Your variables is incorrect indented, they must be under vars so add two spaces.

> &nbsp;&nbsp;roles:
> 
> &nbsp;&nbsp;\* role: PaloAltoNetworks.paloaltonetworks

Need to be a dash

> &nbsp;&nbsp;tasks:
> 
> &nbsp;&nbsp;\* name: Upgrade anti-virus and wildfire

Need to be a dash

> &nbsp;&nbsp;&nbsp;&nbsp;panos\_content:

Doesn't exists in Ansible ref  
[https://docs.ansible.com/ansible/latest/modules/list\_of\_network\_modules.html#panos](https://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html#panos)

> &nbsp;&nbsp;&nbsp;&nbsp;ip\_address: "{{ ip\_address }}"  
> &nbsp;&nbsp;&nbsp;&nbsp;usernaame: "{{ username }}"  
> &nbsp;&nbsp;&nbsp;&nbsp;password: "{{ password }}"  
> &nbsp;&nbsp;&nbsp;&nbsp;anti\_virus\_update: yes  
> &nbsp;&nbsp;&nbsp;&nbsp;wildfire\_update: yes

If the module did exist these lines need to be under module name so you would need to add two spaces.

---

<div class="post-metadata">

**Author:** ![Sudarshan\_V](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@Sudarshan\_V](https://forum.ansible.com/u/Sudarshan_V)\
**Post date:** [February 17, 2019, 7:01am UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/3 "2019-02-17T07:01:05Z")

</div>

Hi Kai,

Thank you for your feedback.  
Pretty sure I have the syntax correct. A copy paste to the email is messing up the spacing.

About the module, I am looking at : [https://github.com/PaloAltoNetworks/ansible-pan](https://github.com/PaloAltoNetworks/ansible-pan)  
Which states the module does exist.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [February 17, 2019, 7:17am UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/4 "2019-02-17T07:17:16Z")

</div>

> Thank you for your feedback.  
> Pretty sure I have the syntax correct. A copy paste to the email is messing  
> up the spacing.

That's why the best thing is to post text only mail and not HTML, since text mails will preserve syntax.

> About the module, I am looking at :  
> [https://github.com/PaloAltoNetworks/ansible-pan](https://github.com/PaloAltoNetworks/ansible-pan)  
> Which states the module does exist.

That is not Ansible, its a Git repository that Palo Alto has created and therefor not part of Ansible.  
To make them available to Ansible you need to install them first.

---

<div class="post-metadata">

**Author:** ![Sudarshan\_V](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@Sudarshan\_V](https://forum.ansible.com/u/Sudarshan_V)\
**Post date:** [February 17, 2019, 7:28am UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/5 "2019-02-17T07:28:36Z")

</div>

Hi Kai,

Will make sure I keep that in mind regarding the text only mail.

I have installed them and have most of the other modules mentioned there working.  
Having issue with just this one.

Cheers,

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [February 17, 2019, 10:56am UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/6 "2019-02-17T10:56:02Z")

</div>

Well, it doesn't exist in that repo either, list of the ones that does  
[https://github.com/PaloAltoNetworks/ansible-pan/tree/develop/library](https://github.com/PaloAltoNetworks/ansible-pan/tree/develop/library)

---

<div class="post-metadata">

**Author:** ![Sudarshan\_V](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@Sudarshan\_V](https://forum.ansible.com/u/Sudarshan_V)\
**Post date:** [February 17, 2019, 10:17pm UTC](https://forum.ansible.com/t/pan-os-panos-content/29693/7 "2019-02-17T22:17:29Z")

</div>

Hi Kai,

I am referring to [https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw\_content.yml](https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw_content.yml)
