fortigate backup cfg

68 views
Skip to first unread message

Sandy Hung

unread,
Apr 20, 2020, 11:29:30 PM4/20/20
to Ansible Project
Dear All:

I have some problem, I ran ansible fortigate backup cfg 
it's file have in path but ansible have error msg 
{ "msg": "Failed while reading configuration backup"}
I don't know what happened

This is my ansible
---
- hosts: localhost
  gather_facts: no

  vars_files:
   - fortikey.yml
  tasks:
    - name: backup system config
      fortios_config:
        host: "{{host}}"
        username: "{{username}}"
        password: "{{password}}"
        backup: yes
        backup_path: "/tmp/fortigate/"
        backup_filename: "backup_config.cfg"

Reply all
Reply to author
Forward
0 new messages