diff --git a/tasks/install.yml b/tasks/install.yml index 2424fef9..0d958fa3 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -19,6 +19,8 @@ stat: path: "{{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS" become: false + vars: + ansible_become: false run_once: true tags: installation register: nomad_checksum @@ -29,6 +31,8 @@ url: "{{ nomad_checksum_file_url }}" dest: "{{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS" become: false + vars: + ansible_become: false run_once: true tags: installation when: not nomad_checksum.stat.exists @@ -41,6 +45,8 @@ args: executable: /bin/bash become: false + vars: + ansible_become: false register: nomad_sha256 tags: installation delegate_to: 127.0.0.1 @@ -49,6 +55,8 @@ stat: path: "{{ role_path }}/files/{{ nomad_pkg }}" become: false + vars: + ansible_become: false register: nomad_package delegate_to: 127.0.0.1 @@ -59,6 +67,8 @@ checksum: "sha256:{{ nomad_sha256.stdout }}" timeout: "42" become: false + vars: + ansible_become: false tags: installation delegate_to: 127.0.0.1 when: not nomad_package.stat.exists @@ -68,6 +78,8 @@ state: directory prefix: ansible-nomad. become: false + vars: + ansible_become: false register: install_temp tags: installation delegate_to: 127.0.0.1 @@ -78,6 +90,8 @@ dest: "{{ install_temp.path }}/" creates: "{{ install_temp.path }}/nomad" become: false + vars: + ansible_become: false tags: installation delegate_to: 127.0.0.1 @@ -95,5 +109,7 @@ path: "{{ install_temp.path }}" state: "absent" become: false + vars: + ansible_become: false tags: installation delegate_to: 127.0.0.1 diff --git a/tasks/install_podman.yml b/tasks/install_podman.yml index fe556551..6d371ef2 100644 --- a/tasks/install_podman.yml +++ b/tasks/install_podman.yml @@ -5,6 +5,8 @@ stat: path: "{{ role_path }}/files/nomad_podman_{{ nomad_podman_version }}_SHA256SUMS" become: false + vars: + ansible_become: false run_once: true tags: installation register: nomad_podman_checksum @@ -15,6 +17,8 @@ url: "{{ nomad_podman_checksum_file_url }}" dest: "{{ role_path }}/files/nomad_podman_{{ nomad_podman_version }}_SHA256SUMS" become: false + vars: + ansible_become: false run_once: true tags: installation when: not nomad_podman_checksum.stat.exists @@ -27,6 +31,8 @@ args: executable: /bin/bash become: false + vars: + ansible_become: false register: nomad_podman_sha256 tags: installation delegate_to: 127.0.0.1 @@ -35,6 +41,8 @@ stat: path: "{{ role_path }}/files/{{ nomad_podman_pkg }}" become: false + vars: + ansible_become: false register: nomad_podman_package delegate_to: 127.0.0.1 @@ -45,6 +53,8 @@ checksum: "sha256:{{ nomad_podman_sha256.stdout }}" timeout: "42" become: false + vars: + ansible_become: false tags: installation delegate_to: 127.0.0.1 when: not nomad_podman_package.stat.exists @@ -54,6 +64,8 @@ state: directory prefix: ansible-nomad. become: false + vars: + ansible_become: false register: install_temp tags: installation delegate_to: 127.0.0.1 @@ -64,6 +76,8 @@ dest: "{{ install_temp.path }}/" creates: "{{ install_temp.path }}/nomad-driver-podman" become: false + vars: + ansible_become: false tags: installation delegate_to: 127.0.0.1 @@ -82,5 +96,7 @@ path: "{{ install_temp.path }}" state: "absent" become: false + vars: + ansible_become: false tags: installation delegate_to: 127.0.0.1