controller_configuration
controller_configuration copied to clipboard
Remove Workflow with controller_state: absent failed
Summary
I create a project with credentials, project, job template and workflow templates using the infra.controlle_configuration collection.
For testing I create also a cleanup Playbook and set the variable controller_state to absent.
It will remove all resources from my Organization except Workflows. due to a fix order of removing workflows (Workflow, Workflow-Node, Node-Links) it will fail at removing Workflow-Nodes due to missing Workflow, which was already removed.
Issue Type
- Bug Report
Ansible, Collection, Controller details
Collection: infra.controller_configuration
Ansible Version:
ansible [core 2.17.2]
config file = /home/runner/_work/aip-configuration/aip-configuration/ansible.cfg
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/runner/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
executable location = /home/runner/.local/bin/ansible
python version = 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.1.4
libyaml = True
ansible-galaxy collection list
Controller version
Ansible Automation Platform Controller 4.5.7
- ansible installation method: one of source, pip, OS package, EE
OS / ENVIRONMENT
Desired Behavior
-
create Workflow using collection: infra.controller_configuration.workflow_job_templates with default variable value controller_state: present
-
remove Workflow using collection: infra.controller_configuration.workflow_job_templates with default variable value controller_state: absent
after step 2 the Workflow including Workflow Nodes are removed from Organization.
Actual Behavior
collection: infra.controller_configuration.workflow_job_templates with default variable value controller_state: absent
=> Playbook will fail.
- name: Cleanup project
hosts: localhost
connection: local
become: false
gather_facts: false
vars:
controller_state: absent
tasks:
- name: Create workflows
ansible.builtin.include_role:
name: infra.controller_configuration.workflow_job_templates
when: controller_workflows is defined
"msg": "The workflow SSR-add new customer team in organization WFTEST was not found on the controller instance server"