From 450729e216f2cca76344607db3bcf3b4f8e266d6 Mon Sep 17 00:00:00 2001 From: benblasco <42140583+benblasco@users.noreply.github.com> Date: Fri, 6 Jan 2023 04:24:11 +1100 Subject: [PATCH] Linux demo updates bblasco podman (#47) * Switched from using podman volumes to file path (issue #36) * Improved readability of output * Added a sensible default message for web server (Issue #36) Co-authored-by: Benjamin Blasco --- linux/podman.yml | 7 +++++-- linux/setup.yml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux/podman.yml b/linux/podman.yml index bb5eca3..fb295e5 100644 --- a/linux/podman.yml +++ b/linux/podman.yml @@ -1,6 +1,7 @@ --- - name: Podman hosts: "{{ HOSTS }}" + vars: volume_path: podman message: undef @@ -28,7 +29,7 @@ image: docker.io/httpd state: started volume: - - "{{ volume_path }}:/usr/local/apache2/htdocs" + - "./{{ volume_path }}/:/usr/local/apache2/htdocs:z" ports: - "8080:80" @@ -47,5 +48,7 @@ - name: Output ansible.builtin.debug: msg: + - "Output of podman ps command:" - "{{ podman_output.stdout_lines }}" - - "{{ web_output.content }}" \ No newline at end of file + - "Contents of web page:" + - "{{ web_output.content }}" diff --git a/linux/setup.yml b/linux/setup.yml index afc0467..502b339 100644 --- a/linux/setup.yml +++ b/linux/setup.yml @@ -267,6 +267,7 @@ controller_templates: type: textarea variable: message required: true + default: "This is Apache webserver running in a container with podman" - name: "LINUX / System Roles" job_type: run