zilti.pot.pot_bridge (0.5.36) — module

Pot bridge task.

| "added in version" 0.1.0 of zilti.pot"

Authors: Daniel Ziltener <dziltener@lyrion.ch>

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install zilti.pot:==0.5.36


Add to requirements.yml

  collections:
    - name: zilti.pot
      version: 0.5.36

Description

Pot bridge task.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create private bridge
  pot_bridge:
    name: mybridge
    size: 5
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Check if creation was successful
  shell:
    cmd: if [ -f /opt/pot/bridges/mybridge ]; then exit 0; else exit 1; fi
  register: bridgetest
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Assert test result
  assert:
    that:
      - bridgetest.rc == 0

Inputs

    
name:
    default: None
    description:
    - The bridge name
    required: true
    type: str

size:
    default: None
    description:
    - expected number of hosts
    required: false
    type: int

state:
    choices:
    - present
    - absent
    default: present
    required: false
    type: str

ignore:
    default: false
    required: false
    type: bool