change dir

This commit is contained in:
willtome
2022-02-11 16:17:04 -05:00
parent 44e9b30c15
commit fae0a9a468

View File

@@ -1,9 +1,8 @@
--- ---
- name: Podman - name: Podman
hosts: "{{ HOSTS }}" hosts: "{{ HOSTS }}"
become: yes
vars: vars:
volume_path: /var/podman volume_path: podman
message: undef message: undef
tasks: tasks:
@@ -11,6 +10,7 @@
ansible.builtin.dnf: ansible.builtin.dnf:
name: podman name: podman
state: latest state: latest
become: yes
- name: Create volume dir - name: Create volume dir
ansible.builtin.file: ansible.builtin.file:
@@ -31,7 +31,6 @@
- "{{ 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:
@@ -44,7 +43,6 @@
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: