Add GNS3 support and fix typo in site.yml

This commit is contained in:
2020-04-09 14:57:54 -04:00
parent 0989800e14
commit af4b3cf4f3
31 changed files with 2694 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
- hosts: localhost
gather_facts: no
tasks:
- name: Stop nodes on the project
gns3_project:
url: "{{ gns3_url }}"
project_name: "{{ gns3_project_name }}"
state: opened
nodes_state: stopped
- name: Create snapshot
gns3_snapshot:
url: "{{ gns3_url }}"
project_name: "{{ gns3_project_name }}"
snapshot_name: snap
state: present
register: resultado
- debug: var=resultado
- pause:
minutes: 1
- name: Restore snapshot
gns3_snapshot:
url: "{{ gns3_url }}"
project_name: "{{ gns3_project_name }}"
snapshot_name: snap
state: restore
- pause:
minutes: 1
- name: Delete snapshot
gns3_snapshot:
url: "{{ gns3_url }}"
project_name: "{{ gns3_project_name }}"
snapshot_name: snap
state: absent