diff options
Diffstat (limited to 'docs/ansible_execution_environment')
| -rw-r--r-- | docs/ansible_execution_environment/ansible_ee.containerfile | 11 | ||||
| -rw-r--r-- | docs/ansible_execution_environment/build-ansible_ee.yml | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/ansible_execution_environment/ansible_ee.containerfile b/docs/ansible_execution_environment/ansible_ee.containerfile new file mode 100644 index 0000000..48fb5ab --- /dev/null +++ b/docs/ansible_execution_environment/ansible_ee.containerfile @@ -0,0 +1,11 @@ +FROM almalinux:9 + +RUN dnf install -y ansible-core + +LABEL ansible_execution_environment="podman run -it --rm \ +-v /opt/playbooks:/opt/playbooks:Z \ +-e ANSIBLE_NOCOLOR=True \ +localhost/ansible_ee ansible-playbook" + +#Build image: +# podman build -f ansible_ee.containerfile -t localhost/ansible_ee diff --git a/docs/ansible_execution_environment/build-ansible_ee.yml b/docs/ansible_execution_environment/build-ansible_ee.yml new file mode 100644 index 0000000..30cee76 --- /dev/null +++ b/docs/ansible_execution_environment/build-ansible_ee.yml @@ -0,0 +1,6 @@ +- hosts: localhost + gather_facts: false + + tasks: + - name: Start podman build for ansible_ee.containerfile + ansible.builtin.shell: podman build -f ansible_ee.containerfile -t localhost/ansible_ee |
