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 <bblasco@redhat.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Podman
|
- name: Podman
|
||||||
hosts: "{{ HOSTS }}"
|
hosts: "{{ HOSTS }}"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
volume_path: podman
|
volume_path: podman
|
||||||
message: undef
|
message: undef
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
image: docker.io/httpd
|
image: docker.io/httpd
|
||||||
state: started
|
state: started
|
||||||
volume:
|
volume:
|
||||||
- "{{ volume_path }}:/usr/local/apache2/htdocs"
|
- "./{{ volume_path }}/:/usr/local/apache2/htdocs:z"
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
|
||||||
@@ -47,5 +48,7 @@
|
|||||||
- name: Output
|
- name: Output
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg:
|
msg:
|
||||||
|
- "Output of podman ps command:"
|
||||||
- "{{ podman_output.stdout_lines }}"
|
- "{{ podman_output.stdout_lines }}"
|
||||||
- "{{ web_output.content }}"
|
- "Contents of web page:"
|
||||||
|
- "{{ web_output.content }}"
|
||||||
|
|||||||
@@ -267,6 +267,7 @@ controller_templates:
|
|||||||
type: textarea
|
type: textarea
|
||||||
variable: message
|
variable: message
|
||||||
required: true
|
required: true
|
||||||
|
default: "This is Apache webserver running in a container with podman"
|
||||||
|
|
||||||
- name: "LINUX / System Roles"
|
- name: "LINUX / System Roles"
|
||||||
job_type: run
|
job_type: run
|
||||||
|
|||||||
Reference in New Issue
Block a user