Skip to content

Panos_admpwd Hangs #272

Answered by mrichardson03
DapperDeer asked this question in Q&A
Discussion options

You must be logged in to vote

You need to be using connection: local so that the module executes on your system locally, instead of doing the typical Ansible method of copying and executing Python code over SSH. Here's an example that I just tried:

- hosts: firewall
  connection: local
  gather_facts: no

  collections:
    - paloaltonetworks.panos

  tasks:
    - name: Change admin password using SSH
      panos_admpwd:
        ip_address: '{{ ip_address }}'
        username: '{{ username }}'
        newpassword: '{{ password }}'
        key_filename: '/tmp/ssh.key'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DapperDeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants