This repository is my personal Ansible automation collection for day-to-day tasks. It’s not intended for publication on Ansible Galaxy.
The directory layout follows the Ansible collection structure: https://docs.ansible.com/projects/ansible/latest/dev_guide/developing_collections_structure.html
This repo is set up to be run via ansible-navigator using a pinned execution environment image (ansible-navigator.yaml).
- Inventory:
hosts.yaml(seeansible.cfg) - Defaults/config:
ansible.cfg - Execution environment: container image configured in
ansible-navigator.yaml
On MacOS, start you Podman machine with:
podman machine init \
--volume /private:/private \
--volume /Volumes/Development:/Volumes/Development \
--volume /Users:/Users \
--volume /var/folders:/var/folders \
--memory 4096 podman-machine-default
podman machine startand install Red Hat internal root ca
podman machine ssh --username root
cd /etc/pki/ca-trust/source/anchors
# Red Hat VPN connection required
curl -k -O https://certs.corp.redhat.com/certs/Current-IT-Root-CAs.pem
update-ca-trustExample (replace with your playbook name):
ansible-navigator run playbooks/<playbook>.ymlPublished image tags: https://quay.io/repository/rbohne/automation?tab=tags
The execution environment build definition lives in:
Build instructions are documented here:
ansible-navigator.yaml pins a specific tag, for example:
ansible-navigator:
execution-environment:
image: quay.io/rbohne/automation:ee-YYYYMMDDHHMMAfter publishing a new image tag, update ansible-navigator.yaml to point at it.