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