davidban77.gns3.gns3_project_file (1.5.0) — module

Updates/creates a file on a project directory

| "added in version" 2.8 of davidban77.gns3"

Authors: David Flores (@davidban77)

preview | supported by community

Install collection

Install with ansible-galaxy collection install davidban77.gns3:==1.5.0


Add to requirements.yml

  collections:
    - name: davidban77.gns3
      version: 1.5.0

Description

Updates/creates a file on a project directory on the GNS3 server


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Retrieve the GNS3 server version
- name: Get the server version
  gns3_project_file:
    url: http://localhost
    port: 3080
    project_name: test_lab
    data: |
        Hello this is a README!
    dest: README.txt

Inputs

    
url:
    description:
    - URL target of the GNS3 server
    required: true
    type: str

data:
    description:
    - The text to insert.
    type: str

dest:
    description:
    - Node destination path. Like 'etc/network/interfaces'
    required: true
    type: str

port:
    default: 3080
    description:
    - TCP port to connect to server REST API
    type: int

user:
    description:
    - User to connect to GNS3 server
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - If the file should present or absent
    type: str

password:
    description:
    - Password to connect to GNS3 server
    type: str

project_id:
    description:
    - Project ID
    type: str

project_name:
    description:
    - Project name
    type: str