diff --git a/linux/podman.yml b/linux/podman.yml index 69b2dd1..1768b3d 100644 --- a/linux/podman.yml +++ b/linux/podman.yml @@ -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: