diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 6c10078..0048172 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -1,6 +1,7 @@ --- - name: Converge hosts: all + become: true tasks: - name: "Include ednxzu.manage_pipx_packages" ansible.builtin.include_role: diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index 3ded4eb..6ce2b2b 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -1,7 +1,8 @@ --- - name: Verify hosts: all - gather_facts: false + gather_facts: true + become: true tasks: - name: "Test: file /etc/hosts" block: @@ -26,7 +27,6 @@ PIPX_HOME: "/opt/pipx" changed_when: false register: pipx_installed_packages - become: true - name: "Set fact" ansible.builtin.set_fact: diff --git a/molecule/default_vagrant/converge.yml b/molecule/default_vagrant/converge.yml index 6c10078..0048172 100644 --- a/molecule/default_vagrant/converge.yml +++ b/molecule/default_vagrant/converge.yml @@ -1,6 +1,7 @@ --- - name: Converge hosts: all + become: true tasks: - name: "Include ednxzu.manage_pipx_packages" ansible.builtin.include_role: diff --git a/molecule/default_vagrant/verify.yml b/molecule/default_vagrant/verify.yml index 55620b7..2f55da6 100644 --- a/molecule/default_vagrant/verify.yml +++ b/molecule/default_vagrant/verify.yml @@ -2,6 +2,7 @@ - name: Verify hosts: all gather_facts: true + become: true tasks: - name: "Test: file /etc/hosts" block: @@ -30,7 +31,6 @@ PIPX_HOME: "/opt/pipx" changed_when: false register: pipx_installed_packages - become: true - name: "Set fact" ansible.builtin.set_fact: diff --git a/molecule/with_custom_packages/converge.yml b/molecule/with_custom_packages/converge.yml index 6c10078..0048172 100644 --- a/molecule/with_custom_packages/converge.yml +++ b/molecule/with_custom_packages/converge.yml @@ -1,6 +1,7 @@ --- - name: Converge hosts: all + become: true tasks: - name: "Include ednxzu.manage_pipx_packages" ansible.builtin.include_role: diff --git a/molecule/with_custom_packages/verify.yml b/molecule/with_custom_packages/verify.yml index bf793f3..b473132 100644 --- a/molecule/with_custom_packages/verify.yml +++ b/molecule/with_custom_packages/verify.yml @@ -1,7 +1,8 @@ --- - name: Verify hosts: all - gather_facts: false + gather_facts: true + become: true tasks: - name: "Test: file /etc/hosts" block: @@ -26,7 +27,6 @@ PIPX_HOME: "/opt/pipx" changed_when: false register: pipx_installed_packages - become: true - name: "Set fact" ansible.builtin.set_fact: diff --git a/molecule/with_custom_packages_vagrant/converge.yml b/molecule/with_custom_packages_vagrant/converge.yml index 6c10078..0048172 100644 --- a/molecule/with_custom_packages_vagrant/converge.yml +++ b/molecule/with_custom_packages_vagrant/converge.yml @@ -1,6 +1,7 @@ --- - name: Converge hosts: all + become: true tasks: - name: "Include ednxzu.manage_pipx_packages" ansible.builtin.include_role: diff --git a/molecule/with_custom_packages_vagrant/verify.yml b/molecule/with_custom_packages_vagrant/verify.yml index 8282a03..652c310 100644 --- a/molecule/with_custom_packages_vagrant/verify.yml +++ b/molecule/with_custom_packages_vagrant/verify.yml @@ -2,6 +2,7 @@ - name: Verify hosts: all gather_facts: true + become: true tasks: - name: "Test: file /etc/hosts" block: @@ -30,7 +31,6 @@ PIPX_HOME: "/opt/pipx" changed_when: false register: pipx_installed_packages - become: true - name: "Set fact" ansible.builtin.set_fact: diff --git a/tasks/main.yml b/tasks/main.yml index a6d8316..6f36c4b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,4 +14,3 @@ loop: "{{ manage_pipx_packages_list }}" when: manage_pipx_packages_list is defined and manage_pipx_packages_list not in [None, ''] - become: true