mirror of
https://github.com/de-it-krachten/ansible-role-awx_config
synced 2026-05-14 03:31:45 +00:00
No description
- Jinja 92.5%
- Dockerfile 7.5%
# [1.5.0](https://github.com/de-it-krachten/ansible-role-awx_config/compare/v1.4.0...v1.5.0) (2026-03-15) ### Features * Added support for AlmaLinux 10 ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| handlers | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| Dockerfile | ||
| README.md | ||
ansible-role-awx_config
AWX configuration (configuration-as-code)
Dependencies
Roles
None
Collections
- awx.awx
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
- RockyLinux 81
- RockyLinux 91
- RockyLinux 101
- OracleLinux 81
- OracleLinux 91
- OracleLinux 101
- AlmaLinux 81
- AlmaLinux 91
- AlmaLinux 101
- Debian 11 (Bullseye)1
- Debian 12 (Bookworm)1
- Debian 13 (Trixie)1
- Ubuntu 20.04 LTS1
- Ubuntu 22.04 LTS1
- Ubuntu 24.04 LTS1
- Fedora 421
- Fedora 431
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# List of organization
awx_organizations: []
# path which organizational configs
awx_organization_path: data
# AWX API url
awx_url: https://localhost
# Check/validate SSL certificates
awx_validate_certs: false
# AWX user + password
awx_user: 'admin'
awx_pass: 'Admin123!'
# List of resources to managed
awx_manage_demo: true
awx_manage_settings: true
awx_manage_organizations: true
awx_manage_users: false
awx_manage_teams: true
awx_manage_credentials: true
awx_manage_projects: true
awx_manage_inventories: true
awx_manage_hosts: true
awx_manage_groups: true
awx_manage_job_templates: true
awx_manage_schedules: true
awx_manage_roles: true
awx_delete_hosts: false
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'awx_config'
hosts: all
vars:
awx_url: https://localhost
awx_validate_certs: false
awx_user: admin
awx_pass: Admin123!
awx_manage_roles: false
awx_version: 24.6.1
awx_organizations:
- name: organization1
short_name: org1
description: Company organization nr1
file: org1.yml
- name: organization2
short_name: org2
description: Company organization nr2
file: org2.yml
awx_organization_path: molecule/default/tests/data
roles:
- deitkrachten.awx_cli
tasks:
- name: Pause play until a URL is reachable from this host
uri:
url: '{{ awx_url }}'
validate_certs: '{{ awx_validate_certs }}'
follow_redirects: 'yes'
method: GET
register: _result
until: _result.status == 200
retries: 30
delay: 10
- name: Get Oauth token
include_role:
name: awx_config
tasks_from: login.yml
- name: Include role 'awx_config'
include_role:
name: awx_config