# Unsupported parameters for (awx.awx.export) module: credentials, job\_templates

**URL:** <https://forum.ansible.com/t/unsupported-parameters-for-awx-awx-export-module-credentials-job-templates/7327>\
**Category:** Get Help\
**Tags:** awx, galaxy-ng\
**Created:** [July 17, 2024, 3:28pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-awx-awx-export-module-credentials-job-templates/7327 "2024-07-17T15:28:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itineed2022](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@itineed2022](https://forum.ansible.com/u/itineed2022)\
**Post date:** [July 17, 2024, 3:28pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-awx-awx-export-module-credentials-job-templates/7327/1 "2024-07-17T15:28:23Z")

</div>

I had asked this question on the [awx github](https://github.com/ansible/awx/issues/15345) but they cannot reproduce it.

### Bug Summary

awx.awx.export returns:  
TASK [Export workflow job template] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (awx.awx.export) module: credentials, job\_templates. Supported parameters include: controller\_password (tower\_password), request\_timeout, controller\_host (tower\_host), controller\_oauthtoken (tower\_oauthtoken), all, validate\_certs (tower\_verify\_ssl), controller\_username (tower\_username), controller\_config\_file (tower\_config\_file).”}

The job\_templates option should be available according to:

> **[Ansible Galaxy](https://galaxy.ansible.com/ui/repo/published/awx/awx/content/module/export/?extIdCarryOver=true&sc_cid=701f2000001OH7YAAW)**

### AWX version

awxkit 24.6.1

### Select the relevant components

- UI
- UI (tech preview)
- API
- Docs
- Collection
- CLI
- Other

### Installation method

N/A

### Modifications

no

### Ansible version

2.13.2

### Operating system

MacOS Sonoma 14.5

### Web browser

Firefox

### Steps to reproduce

ansible-playbook /Users/myself/Documents/Ansible/AnsibleAutomation\_platform\_rebuild/export\_workflow.yaml

### Expected results

```auto
PLAY RECAP *******************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 

```

### Actual results

```auto
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Export Workflow] *******************************************************************************************************************************************************************************************

TASK [Export workflow job template] ******************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (awx.awx.export) module: credentials, job_templates. Supported parameters include: controller_password (tower_password), request_timeout, controller_host (tower_host), controller_oauthtoken (tower_oauthtoken), all, validate_certs (tower_verify_ssl), controller_username (tower_username), controller_config_file (tower_config_file)."}

PLAY RECAP *******************************************************************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0   

```

### Additional information

```auto
python3 -m pip install awxkit
Requirement already satisfied: awxkit in /opt/homebrew/lib/python3.10/site-packages (24.6.1)
Requirement already satisfied: PyYAML in /opt/homebrew/lib/python3.10/site-packages (from awxkit) (6.0.1)
Requirement already satisfied: setuptools in /opt/homebrew/lib/python3.10/site-packages (from awxkit) (59.6.0)
Requirement already satisfied: requests in /opt/homebrew/lib/python3.10/site-packages (from awxkit) (2.32.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/lib/python3.10/site-packages (from requests->awxkit) (3.3.2)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/homebrew/lib/python3.10/site-packages (from requests->awxkit) (2.2.2)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.10/site-packages (from requests->awxkit) (3.7)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.10/site-packages (from requests->awxkit) (2024.7.4)

```

Also the playbook:

```auto
---
- name: Export Workflow
  hosts: localhost
  connection: local
  gather_facts: false
  collections:
    - awx.awx
  environment:
     CONTROLLER_HOST: https://ansibleautomation.mycompany.com/
     CONTROLLER_USERNAME: me2500
     CONTROLLER_PASSWORD: redacted
     CONTROLLER_VERIFY_SSL: False
  tasks:
    - name: Export workflow job template
      awx.awx.export:
        job_templates: "Server Decom - 1"
        credentials: 'all'
      register: export_results
    - debug:
        var: export_results
    - name: Export workflow job template to file
      copy:
        content: "{{ export_results | to_nice_yaml( width=50, explicit_start=True, explicit_end=True) }}"
        dest: workflow.yaml

```

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [July 17, 2024, 5:02pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-awx-awx-export-module-credentials-job-templates/7327/2 "2024-07-17T17:02:16Z")

</div>

Hi, which versions of awx.awx collection are installed on your environment?  
There may be different versions of awx.awx installed in different locations.

```bash
ansible-galaxy collection list | grep -E "^#|awx"

```

---

<div class="post-metadata">

**Author:** ![itineed2022](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@itineed2022](https://forum.ansible.com/u/itineed2022)\
**Post date:** [July 17, 2024, 5:29pm UTC](https://forum.ansible.com/t/unsupported-parameters-for-awx-awx-export-module-credentials-job-templates/7327/3 "2024-07-17T17:29:42Z")

</div>

> [@kurokobo](#):
>
> `ansible-galaxy collection list | grep -E "^#|awx"`

Running that I found this:

```auto
# /Users/me/.ansible/collections/ansible_collections
awx.awx 24.6.1 
# /opt/homebrew/lib/python3.9/site-packages/ansible_collections
awx.awx 21.2.0

```

Following that, my ansible galaxy install was by default using a python3.9 install that I had forgotten about. I removed it (the whole py3.9 environment), and reinstalled into my main python3 (which is python3.12), and now I’m running into this error:

fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “”,  
“module\_stdout”: “\n{"changed": false, "assets": {"users": null, "organizations": null, "teams": null, "credential\_types": null, "credentials": null, "notification\_templates": null, "projects": null, "inventory": null, "inventory\_sources": null, "job\_templates": null, "workflow\_job\_templates": null, "execution\_environments": null, "applications": null, "schedules": null}, "invocation": {"module\_args": {"all": true, "controller\_host": "[https://my.company.com/\](https://my.company.com/%5C)”, "controller\_username": "me", "controller\_password": "VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER", "validate\_certs": false, "request\_timeout": null, "controller\_oauthtoken": null, "controller\_config\_file": null, "users": null, "organizations": null, "teams": null, "credential\_types": null, "credentials": null, "notification\_templates": null, "projects": null, "inventory": null, "inventory\_sources": null, "job\_templates": null, "workflow\_job\_templates": null, "execution\_environments": null, "applications": null, "schedules": null}}}\n\n{"failed": true, "msg": "This endpoint raised an error: /api/v2/users/\nThis endpoint raised an error: /api/v2/organizations/\nThis endpoint raised an error: /api/v2/teams/\nThis endpoint raised an error: /api/v2/credential\_types/\nThis endpoint raised an error: /api/v2/credentials/\nThis endpoint raised an error: /api/v2/notification\_templates/\nThis endpoint raised an error: /api/v2/projects/\nThis endpoint raised an error: /api/v2/inventories/\nThis endpoint raised an error: /api/v2/inventory\_sources/\nThis endpoint raised an error: /api/v2/job\_templates/\nThis endpoint raised an error: /api/v2/workflow\_job\_templates/\nThis endpoint raised an error: /api/v2/execution\_environments/\nThis endpoint raised an error: /api/v2/applications/\nThis endpoint raised an error: /api/v2/schedules/\n", "exception": " File \"/var/folders/\_w/_1xw1qh52410qhfh4z08gc0h0000gq/T/ansible\_export\_payload\_6bgrgzi_/ansible\_export\_payload.zip/ansible\_collections/awx/awx/plugins/modules/export.py\", line 185, in main\n File \"/var/folders/\_w/_1xw1qh52410qhfh4z08gc0h0000gq/T/ansible\_export\_payload\_6bgrgzi_/ansible\_export\_payload.zip/ansible\_collections/awx/awx/plugins/module\_utils/controller\_api.py\", line 283, in exit\_json\n super().exit\_json(\*\*kwargs)\n File \"/var/folders/\_w/_1xw1qh52410qhfh4z08gc0h0000gq/T/ansible\_export\_payload\_6bgrgzi_/ansible\_export\_payload.zip/ansible/module\_utils/basic.py\", line 1534, in exit\_json\n sys.exit(0)\n", "invocation": {"module\_args": {"all": true, "controller\_host": "[https://my.company.com/\](https://my.company.com/%5C)“, "controller\_username": "me", "controller\_password": "VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER", "validate\_certs": false, "request\_timeout": null, "controller\_oauthtoken": null, "controller\_config\_file": null, "users": null, "organizations": null, "teams": null, "credential\_types": null, "credentials": null, "notification\_templates": null, "projects": null, "inventory": null, "inventory\_sources": null, "job\_templates": null, "workflow\_job\_templates": null, "execution\_environments": null, "applications": null, "schedules": null}}}\n”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
