Skip to content

AGOF breaks when using a container with ansible-core 2.19 #63

@mbaldessari

Description

@mbaldessari

The failure looks like the following:

  TASK [infra.aap_configuration.controller_inventories : Managing Controller Inventories | Wait for finish the inventories management] ***^M
  ERROR]: Task failed: Module failed: argument 'variables' is of type str and we
  were unable to convert to dict: dictionary requested, could not parse JSON or
  key=value^[[0m^M Origin:
  /pattern-home/.ansible/collections/ansible_collections/infra/aap_configuration/roles/controller_inventories/tasks/main.yml:43:3^[[0m^M
  
  when: ansible_check_mode and __inventories_job_async.failed is defined and
  __inventories_job_async.failed^[[0m^M
  
   - name: Managing Controller Inventories | Wait for finish the inventories
     management^[[0m^M failed: [localhost] (item=Create/Update Controller
     inventory AGOF Demo Inventory | Wait for finish the inventories creation) =>
     {"__inventories_job_async_result_item": {"__controller_inventory_item":
     {"name": "AGOF Demo Inventory", "organization": "Demo Organization"},
     "ansible_job_id": "j696710084593.561", "ansible_loop_var":
     "__controller_inventory_item", "changed": false, "failed": false,
     "finished": false, "results_file": "/tmp/.ansible/.async/j696710084593.561",
     "started": true}, "ansible_job_id": "j696710084593.561", "ansible_loop_var":
     "__inventories_job_async_result_item", "attempts": 1, "changed": false,
     "finished": true, "msg": "argument 'variables' is of type str and we were
     unable to convert to dict: dictionary requested, could not parse JSON or
     key=value", "results_file": "/tmp/.ansible/.async/j696710084593.561",
     "started": true, "stderr": "", "stderr_lines": [], "stdout": "",
     "stdout_lines": []}^[[0m^M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions