bjolivot / ansible-module-fortios

Ansible module for manging fortios devices like fortigate, fortiwifi, fortiweb...
2 stars 2 forks source link

Backup not happening- getting error like "msg": "Failed while reading configuration backup" #3

Open foxpatil opened 2 years ago

foxpatil commented 2 years ago

Is this issue fixed. ?. I am getting the same error- "Failed while reading configuration backup"}

Below is my playbook hosts: all connection: local

tasks:

   - fortios_config:
           host: "{{ hostname }}"
           username: "{{ username }}"
           password: "{{ password }}"
           vdom: root
           backup: yes
           backup_path: /home/netsec/fortinet
           backup_filename: 002test.cfg

output of the script: /usr/lib/python2.7/dist-packages/ansible/parsing/vault/init.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature

PLAY [all] *****

TASK [Gathering Facts] ***** ok: [x.x.x.x]

TASK [fortios_config] ** fatal: [x.x.x.x]: FAILED! => {"msg": "Failed while reading configuration backup"}

PLAY RECAP ***** x.x.x.x : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0