diff options
| author | spmfox <spmfox@foxwd.com> | 2023-06-07 00:29:18 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2023-06-07 00:29:18 -0400 |
| commit | 4020f454e13e16afcb81dad9857992ea9bf84a99 (patch) | |
| tree | 98b6abd2903fe49247474a14aab3845cc0b81570 /docs/ansible_execution_environment | |
| parent | 9d54971b20be5bf89a4ca0dc6d1e92f8519e5151 (diff) | |
Initial commit
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 |
