{"id":15690202,"url":"https://github.com/rgl/awx-vagrant","last_synced_at":"2025-05-07T23:27:09.514Z","repository":{"id":44336030,"uuid":"502854792","full_name":"rgl/awx-vagrant","owner":"rgl","description":"My Ansible AWX playground","archived":false,"fork":false,"pushed_at":"2022-08-02T07:16:09.000Z","size":30,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T05:41:26.731Z","etag":null,"topics":["ansible","awx","awx-operator","k0s","k8s","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-13T07:40:23.000Z","updated_at":"2023-01-31T13:14:39.000Z","dependencies_parsed_at":"2022-09-12T12:11:00.178Z","dependency_job_id":null,"html_url":"https://github.com/rgl/awx-vagrant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fawx-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fawx-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fawx-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fawx-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/awx-vagrant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243042898,"owners_count":20226719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","awx","awx-operator","k0s","k8s","vagrant"],"created_at":"2024-10-03T18:08:17.427Z","updated_at":"2025-03-11T13:31:53.445Z","avatar_url":"https://github.com/rgl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nMy [Ansible AWX](https://github.com/ansible/awx) playground.\n\n## Usage (libvirt/ubuntu-20.04)\n\nInstall the [Ubuntu 20.04 Vagrant Box](https://github.com/rgl/ubuntu-vagrant).\n\nReview/Modify the [awx.yml playbook](playbooks/project/awx.yml).\n\nBring up the `awx` vagrant environment (here it takes about 20m to be ready, but YMMV):\n\n```bash\ntime vagrant up --provider=libvirt --no-destroy-on-error --no-tty\n```\n\nAccess AWX at the returned endpoint. For example:\n\nhttp://192.168.121.42:30080\n\nUse the `admin`/`admin` credentials.\n\nSelect one of the Templates and click their Launch (rocket icon) button to excute a playbook.\n\nFollow the next section to manually configure AWX in a similar way as the [awx.yml playbook](playbooks/project/awx.yml).\n\n### Manual Configure AWX\n\nFollow the next inner sections to manually configure AWX and execute a playbook.\n\n#### Add Execution Environments\n\nGo to the `Administration`/`Execution Environments`/`Create new execution environment` page. For example:\n\nhttp://192.168.121.42:30080/#/execution_environments/add\n\nAdd a new Execution Environment with the following properties:\n\n* Name: `My Ubuntu EE (latest)`\n* Image: `my-ubuntu-ee:latest`\n* Pull: `Only pull the image if its not present before running.`\n\n**NB** This image was built in [`provision-my-ubuntu-ee.sh`](provision-my-ubuntu-ee.sh).\n\nAdd a new Execution Environment with the following properties:\n\n* Name: `My Windows EE (latest)`\n* Image: `my-windows-ee:latest`\n* Pull: `Only pull the image if its not present before running.`\n\n**NB** This image was built in [`provision-my-windows-ee.sh`](provision-my-windows-ee.sh).\n\n#### Add Inventory\n\nGo to the `Resources`/`Inventories`/`Create new inventory` page. For example:\n\nhttp://192.168.121.42:30080/#/inventories/inventory/add\n\nAdd a new Inventory with the following properties:\n\n* Name: `My Lab`\n\nClick the `Hosts` tab and add a new Host with the following properties:\n\n* Name: `dm1`\n* Variables YAML:\n    ```yaml\n    ---\n    ansible_host: 192.168.1.77\n    ```\n\nAnd repeat the process for all your hosts.\n\n#### Add Credentials\n\nGo to the `Resources`/`Credentials`/`Create New Credential` page. For example:\n\nhttp://192.168.121.42:30080/#/credentials/add\n\nAdd a new Credential with the following properties:\n\n* Name: `Vagrant (Ubuntu My Lab)`\n* Credential Type: `Machine`\n* Username: `vagrant`\n* Password: `vagrant`\n* Privilege Escalation Method: `sudo`\n* Privilege Escalation Username: `vagrant`\n* Privilege Escalation Password: `vagrant`\n\nAdd a new Credential with the following properties:\n\n* Name: `Administrator (Windows My Lab)`\n* Credential Type: `Machine`\n* Username: `Administrator`\n* Password: `vagrant`\n\n#### Add Projects\n\nGo to the `Resources`/`Projects`/`Create New Project` page. For example:\n\nhttp://192.168.121.42:30080/#/projects/add\n\nAdd a new Project with the following properties:\n\n* Name: `My Ubuntu`\n* Execution Environment: `My Ubuntu EE (latest)`\n* Source Control Type: `Git`\n* Source Control URL: `https://github.com/rgl/my-ubuntu-ansible-playbooks.git`\n* Source Control Branch/Tag/Commit: `main`\n* Options: `clean`\n\nAdd a new Project with the following properties:\n\n* Name: `My Windows`\n* Execution Environment: `My Windows EE (latest)`\n* Source Control Type: `Git`\n* Source Control URL: `https://github.com/rgl/my-windows-ansible-playbooks.git`\n* Source Control Branch/Tag/Commit: `main`\n* Options: `clean`\n\n#### Add Templates\n\nGo to the `Resources`/`Templates`/`Create New Job Template` page. For example:\n\nhttp://192.168.121.42:30080/#/templates/job_template/add\n\nAdd a new Project with the following properties:\n\n* Name: `My Ubuntu (development)`\n* Inventory: `My Lab`\n* Project: `My Ubuntu`\n* Playbook: `development.yml`\n* Credentials: `Vagrant (Ubuntu My Lab)`\n* Options: `Privilege Escalation` and `Enable Fact Storage`\n\nAdd a new Project with the following properties:\n\n* Name: `My Windows (development)`\n* Inventory: `My Lab`\n* Project: `My Windows`\n* Playbook: `development.yml`\n* Credentials: `Administrator (Windows My Lab)`\n* Variables YAML:\n    ```yaml\n    ansible_connection: psrp\n    ansible_psrp_protocol: http\n    ansible_psrp_message_encryption: never\n    ansible_psrp_auth: credssp\n    ```\n* Options: `Enable Fact Storage`\n\n#### Execute Playbook\n\nA Playbook is indirectly executed by Launching a Template.\n\nFor example, go to the `Resources`/`Templates`/`My Ubuntu (development)` page\nand click the Launch (the rocket icon) button.\n\n## Reference\n\n* [AWX](https://github.com/ansible/awx)\n* [AWX Operator](https://github.com/ansible/awx-operator)\n* [Automation Controller User Guide](https://docs.ansible.com/automation-controller/latest/html/userguide/index.html)\n  * [Execution Environments](https://docs.ansible.com/automation-controller/latest/html/userguide/execution_environments.html)\n* [Ansible Builder](https://ansible-builder.readthedocs.io)\n* [Ansible Runner](https://ansible-runner.readthedocs.io)\n* Container images sources:\n  * [quay.io/ansible/ansible-runner:latest](https://github.com/ansible/ansible-runner/blob/devel/Dockerfile)\n  * [quay.io/ansible/ansible-builder:latest](https://github.com/ansible/ansible-builder/blob/devel/Containerfile)\n  * [quay.io/ansible/python-builder:latest](https://github.com/ansible/python-builder-image/blob/main/Containerfile)\n  * [quay.io/ansible/python-base:latest](https://github.com/ansible/python-base-image/blob/main/Containerfile)\n\n## Alternatives\n\n* [Ansible Semaphore](https://github.com/ansible-semaphore/semaphore)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fawx-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fawx-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fawx-vagrant/lists"}