commit c3adeaef781ca2719a951e4ce1d256eba1d3a760 parent 9928e8a1605c38c9d1cd186e642d2becb5e03546 Author: Karl Eklund <localpart@gmail.com> Date: Sat, 28 Mar 2026 14:23:41 +0100 Build the image Diffstat:
| A | hosts | | | 2 | ++ |
| A | playbook.yml | | | 13 | +++++++++++++ |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/hosts b/hosts @@ -0,0 +1,2 @@ +[local] +127.0.0.1 ansible_connection=local ansible_python_interpreter=/usr/bin/python3 diff --git a/playbook.yml b/playbook.yml @@ -0,0 +1,13 @@ +--- +- hosts: 127.0.0.1 + connection: local + tasks: + - name: Build Docker image + docker_image: + name: service-status-app + state: present + source: build + build: + path: "{{ playbook_dir }}/python_app" + rm: true + tag: latest