You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2020. It is now read-only.
---------------------------------------results ----------------------
[root@aut-server ansible-fortinet]# ansible-playbook test-main.yml -vvv
ansible-playbook 2.9.7
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
PLAYBOOK: test-main.yml ***********************************************************************************************************************************************************************************************
1 plays in test-main.yml
PLAY [localhost] ******************************************************************************************************************************************************************************************************
META: ran handlers
Hi
I need help with this playbook
gather_facts: "false"
connection: local
vars:
tasks:
fortiosconfig:
config: "system config restore"
action: "restore"
host: "{{ host_master_config }}"
username: "{{ username }}"
password: "{{ password }}"
vdom: "{{ vdom }}"
https: True
ssl_verify: False
config_parameters:
filename: "backup/backup_config_001"
---------------------------------------results ----------------------
[root@aut-server ansible-fortinet]# ansible-playbook test-main.yml -vvv
ansible-playbook 2.9.7
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
PLAYBOOK: test-main.yml ***********************************************************************************************************************************************************************************************
1 plays in test-main.yml
PLAY [localhost] ******************************************************************************************************************************************************************************************************
META: ran handlers
TASK [system config restore] ******************************************************************************************************************************************************************************************
task path: /root/ansible-fortinet/test-main.yml:6
<192.168.88.133> ESTABLISH LOCAL CONNECTION FOR USER: root
<192.168.88.133> EXEC /bin/sh -c 'echo ~root && sleep 0'
<192.168.88.133> EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp
"&& mkdir /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124 && echo ansible-tmp-1587985203.5996234-114393-164317949494124="echo /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124
" ) && sleep 0'Using module file /root/ansible-fortinet/library/fortiosconfig.py
<192.168.88.133> PUT /root/.ansible/tmp/ansible-local-11438557ynznlj/tmpjmnfz2eq TO /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124/AnsiballZ_fortiosconfig.py
<192.168.88.133> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124/ /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124/AnsiballZ_fortiosconfig.py && sleep 0'
<192.168.88.133> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124/AnsiballZ_fortiosconfig.py && sleep 0'
<192.168.88.133> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1587985203.5996234-114393-164317949494124/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
"changed": true,
"invocation": {
"module_args": {
"action": "restore",
"commands": null,
"config": "system config restore",
"config_parameters": {
"filename": "backup/backup_config_001"
},
"description": null,
"diff": false,
"host": "10.21.0.254",
"https": true,
"mkey": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"ssl_verify": false,
"username": "ansible",
"vdom": "root"
}
},
"meta": {
"result": "[\n {\n "http_method":"POST",\n "results":{\n "error":"config_invalid_file",\n "config_restored":false\n },\n "vdom":"root",\n "path":"system",\n "name":"config",\n "action":"restore",\n "status":"success",\n "serial":"FG100ETK18010651",\n "version":"v6.0.7",\n "build":302\n }\n]",
"status": 200,
"version": "v6.0.7"
}
}
META: ran handlers
META: ran handlers
PLAY RECAP ************************************************************************************************************************************************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[root@aut-server ansible-fortinet]#
The text was updated successfully, but these errors were encountered: