From 5dfdbd1fbe60e9cf544d718fa77abca945e0d9f7 Mon Sep 17 00:00:00 2001 From: willtome Date: Fri, 11 Feb 2022 16:07:50 -0500 Subject: [PATCH] become --- linux/podman.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: