containers.podman.podman_network_info (1.12.1) — module

Gather info about podman networks

| "added in version" 1.0.0 of containers.podman"

Authors: Sagi Shnaidman (@sshnaidm)

Install collection

Install with ansible-galaxy collection install containers.podman:==1.12.1


Add to requirements.yml

  collections:
    - name: containers.podman
      version: 1.12.1

Description

Gather info about podman networks with podman inspect command.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about all present networks
  containers.podman.podman_network_info:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather info about specific network
  containers.podman.podman_network_info:
    name: podman

Inputs

    
name:
    description:
    - Name of the network
    type: str

executable:
    default: podman
    description:
    - Path to C(podman) executable if it is not in the C($PATH) on the machine running
      C(podman)
    type: str

Outputs

networks:
  description: Facts from all or specified networks
  returned: always
  sample:
  - cniVersion: 0.4.0
    name: podman
    plugins:
    - bridge: cni-podman0
      ipMasq: true
      ipam:
        ranges:
        - - gateway: 10.88.0.1
            subnet: 10.88.0.0/16
        routes:
        - dst: 0.0.0.0/0
        type: host-local
      isGateway: true
      type: bridge
    - capabilities:
        portMappings: true
      type: portmap
    - backend: iptables
      type: firewall
  type: list