No description
Find a file
Mark van Huijstee 41b1aec3c8
Merge pull request #24 from de-it-krachten/dev
Update supported platforms & CI (2026-03-14)
2026-03-15 12:36:01 +01:00
.github/workflows Update supported platforms & CI 2026-03-14 19:19:51 +01:00
defaults feat: Add support for proxied configurations 2023-06-06 21:56:44 +02:00
meta Update supported platforms & CI 2025-08-05 10:23:59 +02:00
molecule/default Update supported platforms & CI 2026-03-14 14:35:42 +01:00
tasks fix: Change loop/label for latest ansible 2023-09-20 12:37:44 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-07 21:04:19 +02:00
.cicd Update CI 2026-03-06 22:09:54 +01:00
.cicd.overwrite Update CI 2026-03-06 22:09:54 +01:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 22:20:27 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 01:29:46 +01:00
.releaserc.yml Update CI 2026-03-06 22:09:54 +01:00
.roles feat: Update CI to latest standards 2022-10-07 21:04:19 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 01:29:46 +01:00
CHANGELOG.md chore(release): 1.8.0 [skip ci] 2025-08-06 20:04:21 +00:00
README.md Update supported platforms & CI 2026-03-14 14:35:42 +01:00

CI

ansible-role-awx_docker

Install AWX using Docker

Dependencies

Roles

None

Collections

  • community.docker

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • RockyLinux 8
  • OracleLinux 81
  • OracleLinux 91
  • OracleLinux 101
  • AlmaLinux 81
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# AWX required OS Packages
awx_os_packages:
  - git
  - make

# AWX required pypi Packages
awx_pip_packages:
  - ansible
  - pexpect

# AWX version
awx_version: latest

# Github API endpoint to get latest version
awx_api: https://api.github.com/repos/ansible/awx

# AWX git repo
awx_git_url: https://github.com/ansible/awx.git

# Local path to clone git repo into
awx_git_path: /opt/awx/git

# Should git repo be recreated
awx_git_refresh: false

# Git commit to use
awx_git_tag: "{{ awx_version }}"

# Location to write log files to
awx_log_path: /opt/awx/log

# Steps to execute in the process
awx_create_receptor: false
awx_compose_build: true
awx_compose: true

# Autostart AWX at boot
awx_autostart: true

# Passwords / secrets to use (when not defined, automatically defined)
# awx_pg_hostname: '127.0.0.1'
# awx_pg_port: 5432
# awx_pg_username:
# awx_pg_password: awx
# awx_broadcast_websocket_secret: awx
# awx_secret_key: awx

# Enable LDAP
awx_ldap: false

# AWX admin user
awx_admin_username: admin
awx_admin_password: admin
awx_admin_email: admin@example.com

awx_possible_changed_files:
  - tools/docker-compose/inventory
  - tools/docker-compose/ansible/roles/sources/templates/docker-compose.yml.j2

awx_inventory_updates:
  - name: pg_host
    value: "{{ vars['awx_pg_host'] | default('') }}"
  - name: pg_hostname
    value: "{{ vars['awx_pg_hostname'] | default('') }}"
  - name: pg_port
    value: "{{ vars['awx_pg_port'] | default('') }}"
  - name: pg_username
    value: "{{ vars['awx_pg_username'] | default('') }}"
  - name: pg_password
    value: "{{ vars['awx_pg_password'] | default('') }}"
  - name: pg_database
    value: "{{ vars['awx_pg_database'] | default('') }}"
  - name: broadcast_websocket_secret
    value: "{{ vars['awx_broadcast_websocket_secret'] | default('') }}"
  - name: secret_key
    value: "{{ vars['awx_secret_key'] | default('') }}"

awx_docker_compose_updates:
  - name: port8080
    regexp: '^(\s*)(- )("8080:8080")'
    replace: '\1#\2\3'
  - name: port8888
    regexp: '^(\s*)(- )("8888:8888")'
    replace: '\1#\2\3'

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'awx_docker' pre playbook
  ansible.builtin.import_playbook: converge-pre.yml
  when: molecule_converge_pre is undefined or molecule_converge_pre | bool
- name: sample playbook for role 'awx_docker'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    awx_version: HEAD
  tasks:
    - name: Include role 'awx_docker'
      ansible.builtin.include_role:
        name: awx_docker