Hi experts, Have you tried changing palo alto password? I saw a module but its giving me an error:
https://docs.ansible.com/ansible/latest/modules/panos_admpwd_module.html#parameter-key_filename ansible-playbook panos_pw_test.yml -u ansible -k SSH password: [DEPRECATION WARNING]: panos_admpwd is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [PanOS PW Change] ****************************************************************************************************************************************************************************************************************************************************************************************************** TASK [set admin password] *************************************************************************************************************************************************************************************************************************************************************************************************** FAILED - RETRYING: set admin password (10 retries left). FAILED - RETRYING: set admin password (9 retries left). FAILED - RETRYING: set admin password (8 retries left). FAILED - RETRYING: set admin password (7 retries left). FAILED - RETRYING: set admin password (6 retries left). FAILED - RETRYING: set admin password (5 retries left). FAILED - RETRYING: set admin password (4 retries left). FAILED - RETRYING: set admin password (3 retries left). FAILED - RETRYING: set admin password (2 retries left). FAILED - RETRYING: set admin password (1 retries left). fatal: [PA_Lab]: FAILED! => {"attempts": 10, "changed": false, "msg": "Unsupported parameters for (panos_admpwd) module: password Supported parameters include: ip_address, key_filename, newpassword, username"} PLAY RECAP ****************************************************************************************************************************************************************************************************************************************************************************************************************** PA_Lab : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 ####MY Playbook### --- - name: PanOS PW Change hosts: PA_Lab gather_facts: false connection: local tasks: - name: set admin password panos_admpwd: ip_address: "192.168.1.1" username: 'ansible' password: 'password' newpassword: 'qwerty' register: result until: result is not failed retries: 10 delay: 30 ##Host ping## # ansible PA_Lab -m ping PA_Lab | SUCCESS => { "changed": false, "ping": "pong" } -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3ab9ec2c-250d-4761-9e88-fb402035be1b%40googlegroups.com.
