

Moved the licenses to the folder of my playbook worked! All devices are now licensed. Haven't attempted the list method yet and thanks for your patience! Only one week in with ansible and coming from a networking background so most of these concepts are really new to me. Changed file path from /home/FortiVM/license1.lic to ~/FortiVM/license1.lic.Attempted to use different license files.Ensured that all FortiGates have the correct protocols enabled on the interfaces and tested using telnet commands on the open TCP ports.Verified all directories and files are owned by the "ansible" user.Localhost : ok=1 changed=0 unreachable=0 failed=1 EXEC /bin/sh -c 'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1537373568.19-179351931553098/ > /dev/nuįile "/tmp/ansible_9GfluQ/ansible_module_fortiosconfig.py", line 845, inįile "/tmp/ansible_9GfluQ/ansible_module_fortiosconfig.py", line 833, in mainįile "/tmp/ansible_9GfluQ/ansible_module_fortiosconfig.py", line 765, in fortigate_config_uploadįiles = \nIOError: No such file or directory: '/home/FortiVM/license1.lic'\n", PUT /home/ansible/.ansible/tmp/ansible-local-1001m5noFa/tmpZISr3_ TO /home/ansible/.ansible/tmp/ansible-t

Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/fortios/fortiosconfig.py EXEC /bin/sh -c 'echo ~ansible & sleep 0' ESTABLISH LOCAL CONNECTION FOR USER: ansible Task path: /home/ansible/fortilicense.yml:4 Here's the playbook based on the first post:Īfter attempting to run the playbook, I think I am seeing that the module is not seeing the file based on the path I have provided for the key "filename"?
