# fortios config backup - can someone help me understand this please

**URL:** <https://forum.ansible.com/t/fortios-config-backup-can-someone-help-me-understand-this-please/34038>\
**Category:** Ansible Project\
**Created:** [October 15, 2020, 1:11pm UTC](https://forum.ansible.com/t/fortios-config-backup-can-someone-help-me-understand-this-please/34038 "2020-10-15T13:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gisbert\_Haas](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@Gisbert\_Haas](https://forum.ansible.com/u/Gisbert_Haas)\
**Post date:** [October 15, 2020, 1:11pm UTC](https://forum.ansible.com/t/fortios-config-backup-can-someone-help-me-understand-this-please/34038/1 "2020-10-15T13:11:46Z")

</div>

[https://docs.ansible.com/ansible/latest/collections/fortinet/fortios/fortios\_system\_config\_backup\_restore\_module.html](https://docs.ansible.com/ansible/latest/collections/fortinet/fortios/fortios_system_config_backup_restore_module.html)

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
