# Ansible FortiOS config backup to target node error

**URL:** <https://forum.ansible.com/t/ansible-fortios-config-backup-to-target-node-error/26537>\
**Category:** Ansible Project\
**Created:** [January 22, 2018, 11:28pm UTC](https://forum.ansible.com/t/ansible-fortios-config-backup-to-target-node-error/26537 "2018-01-22T23:28:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Liew](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@James\_Liew](https://forum.ansible.com/u/James_Liew)\
**Post date:** [January 22, 2018, 11:28pm UTC](https://forum.ansible.com/t/ansible-fortios-config-backup-to-target-node-error/26537/1 "2018-01-22T23:28:10Z")

</div>

Hi all,

I am having issues with backing up a Forti64VM(Fortigate VM appliance) running FortiOS 5.6.2 in my environment via Ansible Tower.

The errors below:

[![](https://lh3.googleusercontent.com/-zM-LwRvqDpc/WmZyurvs0rI/AAAAAAAAJ1U/k-kOLWsagjMAqbJBJ66p8KY85NJU3mpfwCLcBGAs/s320/2018-01-23_7-23-55.png)](https://lh3.googleusercontent.com/-zM-LwRvqDpc/WmZyurvs0rI/AAAAAAAAJ1U/k-kOLWsagjMAqbJBJ66p8KY85NJU3mpfwCLcBGAs/s1600/2018-01-23_7-23-55.png)

Error message: { “msg”: “SSH Error: data could not be sent to remote host "192.168.1.1". Make sure this host can be reached over ssh”, “unreachable”: true, “changed”: false }

I’ve configured the playbook as below but I can’t seem to get it to write the config.

On Tower, I’ve set the credential option to that of the account/password in the YAML file for the firewall(read-only) access.

— - name: Hello hosts: 192.168.1.1 tasks: - name: Backup current config fortios\_config: username: username password: password backup: yes backup\_path: /tmp

Why is Ansible attempting to write the config from the firewall back to itself? Should it not write to the Ansible machine?

Firewall logs show that the account is indeed logging in correctly when I run the template from Ansible.
