robertdebock.awx_configuration

Ansible Role AWX Configuration

This role helps you set up AWX.

GitHub GitLab Downloads Version
github gitlab downloads Version

Example Playbook

Here's an example from the file molecule/default/converge.yml that runs tests with every change.

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: robertdebock.awx_configuration
      awx_configuration_ci: true
      awx_configuration_organizations:
        - name: My organization
          description: Description of my organization
      awx_configuration_credentials:
        - name: My credential
          description: Description of my credential
          organization: My organization
          credential_type: Machine
        - name: My Galaxy credential
          description: Description of my Galaxy credential
          credential_type: Ansible Galaxy/Automation Hub API Token

Before running it, prepare the machine using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: true
  gather_facts: false

  roles:
    - role: robertdebock.bootstrap

For more details, see a full explanation and example on using these roles.

Role Variables

Default variable values can be found in defaults/main.yml:

---
# Default file for awx_configuration

# The URL of the AWX instance.
awx_configuration_controller_host: "http://localhost"

# AWX credentials.
awx_configuration_controller_password: "My_P@ssw0rd"
awx_configuration_controller_username: admin

# Note: Organizations and credentials can refer to each other, so you might need to run the playbook twice:
# - First to create the credential
# - Then to create the organization.

# List of organizations to create in AWX.
awx_configuration_organizations: []

# List of credentials to create in AWX.
awx_configuration_credentials: []

# CI testing for this role is difficult because AWX isn't available.
awx_configuration_ci: false

Requirements

State of Used Roles

To prepare a system, you can use the following roles or choose another method.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab

Context

This role is part of a set of compatible roles. Check out the documentation for these roles for more information.

Here's an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

Container Tags
Alpine all
Amazon Candidate
Debian all
EL 9
Fedora all
Ubuntu all

You need at least Ansible version 2.12. Testing has been done on:

  • The last version.
  • The current version.
  • The development version.

If you encounter any issues, please report them on GitHub.

License

This project is licensed under Apache-2.0.

Author Information

This role was created by robertdebock.

You can also consider sponsoring me.

Informazioni sul progetto

Configure AWX.

Installa
ansible-galaxy install robertdebock.awx_configuration
Licenza
apache-2.0
Download
69
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.