fortios config backup - can someone help me understand this please

10 views
Skip to first unread message

Gisbert Haas

unread,
Oct 15, 2020, 9:11:46 AM10/15/20
to Ansible Project

using the example from the documentation above
I dont understand why hosts is set to locahosts and I need to specify a host with its IP.


hosts: localhost 
   connection: httpapi 
    collections: - fortinet.fortios 
     vars: vdom: "root" 
       host: "192.168.122.60"

usually the hosts are in the hosts file but when I change 
hosts: localhost 
to 
hosts: fortigates for example  and remove the host entry the playbook will not run anymore.

Thanks
Reply all
Reply to author
Forward
0 new messages