Deprecated

Removed in 3.7

i

Reason:Deprecated in favor of C(_workflow_job_template) and C(_workflow_job_template_node) modules. | Alternative:Use M(tower_workflow_job_template) and M(_workflow_job_template_node) instead.

alancoding.awx.tower_workflow_template (11.2.0) — module

create, update, or destroy Ansible Tower workflow template.

| "added in version" 2.7 of alancoding.awx"

Authors: Adrien Fleury (@fleu42)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install alancoding.awx:==11.2.0


Add to requirements.yml

  collections:
    - name: alancoding.awx
      version: 11.2.0

Description

A tower-cli based module for CRUD actions on workflow job templates.

Enables use of the old schema functionality.

Not updated for new features, convert to the modules for workflow_job_template and workflow_job_template node instead.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- tower_workflow_template:
    name: Workflow Template
    description: My very first Workflow Template
    organization: My optional Organization
    schema: "{{ lookup('file', 'my_workflow.json') }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- tower_workflow_template:
    name: Workflow Template
    state: absent

Inputs

    
name:
    description:
    - The name to use for the workflow.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Desired state of the resource.
    type: str

schema:
    description:
    - 'The schema is a JSON- or YAML-formatted string defining the hierarchy structure
      that connects the nodes. Refer to Tower documentation for more information.

      '
    elements: dict
    type: list

survey:
    description:
    - The definition of the survey associated to the workflow.
    type: dict

inventory:
    description:
    - Name of the inventory to use for the job template.
    type: str
    version_added: '2.9'
    version_added_collection: alancoding.awx

extra_vars:
    description:
    - Extra variables used by Ansible in YAML or key=value format.
    type: dict

tower_host:
    description:
    - URL to your Tower or AWX instance.
    - If value not set, will try environment variable C(TOWER_HOST) and then config files
    - If value not specified by any means, the value of C(127.0.0.1) will be used
    type: str

description:
    description:
    - The description to use for the workflow.
    type: str

organization:
    description:
    - The organization the workflow is linked to.
    type: str

ask_inventory:
    description:
    - Prompt user for inventory on launch.
    type: bool
    version_added: '2.9'
    version_added_collection: alancoding.awx

ask_extra_vars:
    description:
    - Prompt user for (extra_vars) on launch.
    type: bool
    version_added: '2.9'
    version_added_collection: alancoding.awx

survey_enabled:
    description:
    - Setting that variable will prompt the user for job type on the workflow launch.
    type: bool

tower_password:
    description:
    - Password for your Tower or AWX instance.
    - If value not set, will try environment variable C(TOWER_PASSWORD) and then config
      files
    type: str

tower_username:
    description:
    - Username for your Tower or AWX instance.
    - If value not set, will try environment variable C(TOWER_USERNAME) and then config
      files
    type: str

validate_certs:
    aliases:
    - tower_verify_ssl
    description:
    - Whether to allow insecure connections to Tower or AWX.
    - If C(no), SSL certificates will not be validated.
    - This should only be used on personally controlled sites using self-signed certificates.
    - If value not set, will try environment variable C(TOWER_VERIFY_SSL) and then config
      files
    type: bool

tower_config_file:
    description:
    - Path to the Tower or AWX config file.
    type: path

allow_simultaneous:
    description:
    - If enabled, simultaneous runs of this job template will be allowed.
    type: bool