Files
toallab-automation/collections/ansible_collections/davidban77/gns3/test/playbooks/create_files.yml

23 lines
621 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- hosts: localhost
tasks:
- name: Play with a dummy file to node
gns3_node_file:
url: "{{ gns3_url }}"
project_name: "{{ gns3_project_name }}"
node_name: alpine-1
state: present
dest: /etc/network/dummy_file
data: |
# Some data to insert on the file
auto eth0
iface eth0 inect dhcp
- name: Play with a dummy file on project
gns3_project_file:
url: "{{ gns3_url }}"
project_name: "{{ gns3_project_name }}"
state: present
dest: README.txt
data: |
Hello! this is a README