community.cip.ensure_tags (1.0.1) — module

Ensure tags have a specific value

Authors: Chris Santiago (@resoluteCoder)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.cip:==1.0.1


Add to requirements.yml

  collections:
    - name: community.cip
      version: 1.0.1

Description

Ensure tags have a specific value

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure tags have a specific value for program - Tag Playground
  community.cip.ensure_tags:
    program: 'Tag_Playground'
    tags:
      - name: "modified_by_ansible"
        value: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure tags have a specific value
  community.cip.ensure_tags:
    tags:
      - name: "pi"
        value: 3.14

Inputs

    
tags:
    description:
    - List of tags with name and value
    elements: dict
    required: true
    suboptions:
      name:
        description:
        - Name of the tag to target
        required: true
        type: str
      value:
        description:
        - Value to ensure the tag is set to.
        required: true
        type: raw
    type: list

program:
    description:
    - Name of the program
    required: false
    type: str