syntropynet / syntropynet.syntropy / 0.3.0 / module / syntropy_template Manages networks and connections on Syntropy Platform. | "added in version" 0.1.0 of syntropynet.syntropy" Authors: Andrius Mikonis (@foxis)syntropynet.syntropy.syntropy_template (0.3.0) — module
Install with ansible-galaxy collection install syntropynet.syntropy:==0.3.0
collections: - name: syntropynet.syntropy version: 0.3.0
Allows to create/delete networks between endpoints using Jinja configuration template.
Configuration file format can be either YAML or JSON and templating is done using Jinja language.
- name: Create a Point to point network syntropy_template: template_path: "files/configuration.yaml" template_params: network_name: "custom name" network_state: present
- name: Delete the network syntropy_template: template_path: "files/configuration.yaml" template_params: network_name: "custom name" network_state: absent
api_url: default: null description: - URL Of the Platform API. - This parameter is required if SYNTROPY_API_SERVER environment variable is not set. required: false type: str api_token: default: null description: - API Authorization token string. - This parameter is required if SYNTROPY_API_TOKEN environment variable is not set. required: false type: str template_path: description: - The local path of the Syntropy configuration template. - This must be the full path to the file, relative to the working directory. If using roles this may look - like C(roles/syntropy/files/config-example.yaml). required: true type: path template_params: default: {} description: ID of the network. Has precedence before network name. required: false type: dict
error: description: Error message upon unsuccessful configuration. returned: always sample: Syntropy API call resulted in an error type: str