Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to create AWX API token #1

Open
PC-Admin opened this issue Dec 11, 2022 · 1 comment
Open

Fails to create AWX API token #1

PC-Admin opened this issue Dec 11, 2022 · 1 comment

Comments

@PC-Admin
Copy link
Owner

This section of cleanup_defaults.yml fails:

- name: Create a AWX/Automation Controller session token for executing AWX modules
  awx.awx.tower_token:
    description: 'AWX/Automation Controller Session Token'
    scope: "write"
    state: present
    tower_host: "https://{{ awx_url }}"
    tower_oauthtoken: "{{ master_token }}"
    validate_certs: yes
  register: awx_session_token

causes:

TASK [awx-custom-config : Create a AWX/Automation Controller session token for executing AWX modules] *********************************************************************************
fatal: [awx.penholder.xyz]: FAILED! => {"changed": false, "msg": "There was an unknown error when trying to connect to https://awx.penholder.xyz/api/v2/tokens/: URLError <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:997)>"}
@PC-Admin
Copy link
Owner Author

Likely related:

#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant