Skip to content

Workflow creation not idempotent #1243

@myllynen

Description

@myllynen

A workflow definition like this seems to always cause changes reported for some reason:

controller_workflows:
  - name: Test Workflow Job Template
    description: Workflow for testing
    organization: Test Org
    inventory: Test Inventory
    limit: local
    extra_vars:
      message: Message from workflow
    simplified_workflow_nodes:
      - identifier: node1
        all_parents_must_converge: false
        unified_job_template: Test Random Failure
        credentials: []
        success_nodes:
          - node10
        failure_nodes:
          - node20
        always_nodes: []
      - identifier: node10
        approval_node:
          name: Test Approval
          description: Approval step for testing
          timeout: 0
        success_nodes:
          - node11
      - identifier: node11
        unified_job_template: Test Job Template
      - identifier: node20
        unified_job_template: Test Random Failure

With AAP 2.6-3 and ansible.platform 2.6.20251106:

TASK [infra.aap_configuration.controller_workflow_job_templates : add_workflows_schema | Create links between Workflow Nodes]
changed: [localhost] => (item=node1)
changed: [localhost] => (item=node10)
skipping: [localhost] => (item=node11) 
skipping: [localhost] => (item=node20) 

Not sure if this is due to infra.aap_collection but perhaps easiest to check here first. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions