PAN-OS [panos_content]

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:

- 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

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:

- 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 -

  hosts: paloalto
  connection: local
  gather_facts: False
  vars:
  ip_address: "x.x.x.x"
  username: "xxxxxx"
  password: "yyyyyyyy"

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

  roles:

  * role: PaloAltoNetworks.paloaltonetworks

Need to be a dash

  tasks:

  * name: Upgrade anti-virus and wildfire

Need to be a dash

    panos_content:

Doesn't exists in Ansible ref
https://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html#panos

    ip_address: "{{ ip_address }}"
    usernaame: "{{ username }}"
    password: "{{ password }}"
    anti_virus_update: yes
    wildfire_update: yes

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

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
Which states the module does exist.

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
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.

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,

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

Hi Kai,

I am referring to https://github.com/PaloAltoNetworks/ansible-pan/blob/develop/examples/fw_content.yml