No description
Find a file
Mark van Huijstee 968bd8dae2
Merge pull request #20 from de-it-krachten/dev
Update supported platforms & CI (2026-03-14)
2026-03-15 15:58:06 +01:00
.github/workflows Update supported platforms & CI 2026-03-15 13:28:08 +01:00
defaults fix: Move resource 'organizations' to top 2023-06-06 21:41:07 +02:00
meta Update CI 2026-03-06 21:29:50 +01:00
molecule/default Update supported platforms & CI 2026-03-15 13:28:08 +01:00
tasks Replace ansible loop by native jinja2 loop 2023-11-08 23:05:35 +01:00
templates Initial commit 2022-10-19 23:59:08 +02:00
.ansible-lint feat: Initial release 2022-10-20 13:09:25 +02:00
.cicd Update supported platforms & CI 2026-03-15 13:28:08 +01:00
.cicd.overwrite Update supported platforms & CI 2026-03-15 13:28:08 +01:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 22:19:11 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 01:27:28 +01:00
.releaserc.yml Update CI 2026-03-06 21:29:50 +01:00
.roles feat: Initial release 2022-10-20 13:09:25 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 01:27:28 +01:00
CHANGELOG.md chore(release): 1.7.0 [skip ci] 2026-03-14 16:28:02 +00:00
README.md Update supported platforms & CI 2026-03-15 13:28:08 +01:00

CI

ansible-role-awx_convert

Convert AWX export into Configuration-as-Code, usable by the role 'awx_import'

Dependencies

Roles

None

Collections

None

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


# Host to execute code from
awx_delegation_host: localhost

# Should the hosts & groups be extracted from inventory (only for old exports)
awx_extract_from_inventory: false

# List of AWX resources to convert
awx_convert_resources:
  - settings
  - organizations
  - credential_types
  - credentials
  # - execution_environments
  - inventory
  - inventory_sources
  - job_templates
  - notification_templates
  - projects
  - teams
  - users
  - workflow_job_templates
  # - roles  ## Not yet implemented
  - schedules
  # - applications  ## Not yet implemented
  # - system_job_templates  ## Not yet implemented
  - groups
  - hosts

# Dict of additional variable files
awx_convert_vars:
  credential_types:
    - injectors
    - inputs
  groups:
    - variables
  hosts:
    - variables
  inventory:
    - variables
  inventory_sources:
    - source_vars
  job_templates:
    - extra_vars
  schedules:
    - extra_data
  workflow_job_templates:
    - extra_vars

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'awx_convert' 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_convert'
  hosts: all
  become: 'no'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    awx_export_path: /tmp/awx
    awx_config_path: /tmp/awx1
  tasks:
    - name: Include role 'awx_convert'
      ansible.builtin.include_role:
        name: awx_convert