This commit is contained in:
willtome
2022-02-11 16:07:50 -05:00
parent b0319ca552
commit 5dfdbd1fbe

View File

@@ -1,5 +1,7 @@
---
- name: Podman
hosts: "{{ HOSTS }}"
become: yes
vars:
volume_path: /var/podman
message: undef
@@ -9,7 +11,6 @@
ansible.builtin.dnf:
name: podman
state: latest
become: true
- name: Create volume dir
ansible.builtin.file:
@@ -30,6 +31,7 @@
- "{{ volume_path }}:/usr/local/apache2/htdocs"
ports:
- "8080:80"
become: false
- name: Check Web Page
ansible.builtin.uri:
@@ -42,6 +44,7 @@
shell: podman ps
register: podman_output
changed_when: false
become: false
- name: Output
ansible.builtin.debug: