--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bcada677-5a4b-4a1f-afb5-ee11263fa555%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[everything]
10.7.122.16
10.7.122.18
[all:vars]
ansible_connection=ssh
ansible_user=admin
ansible_ssh_pass=notTheRealPassword
- name: FortiAP Backup Config
hosts: all
connection: local
gather_facts: no
tasks:
- name: Connect to FortiAP and backup current config
raw: 'cfg -s'
register: result
- name: Write config backup to file
local_action: copy content="{{ result.stdout }}" dest="/home/admin/fortiap/configbackups/{{ inventory_hostname }}-oldconfig.txt"
[defaults]
host_key_checking = false
ansible-playbook -v ./fortiap_backup.yml -i ./aplist.txt
tasks:
- name: Connect to KlasOS
raw: 'user...@x.x.x.x'