From 976b78c537a56d1c412b9837af11ec8cb80ea8d9 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 3 Dec 2023 17:50:24 +0100 Subject: [PATCH] feat: remove become from role --- molecule/default/converge.yml | 1 + molecule/default/verify.yml | 3 ++- molecule/default_vagrant/converge.yml | 1 + molecule/default_vagrant/verify.yml | 1 + molecule/with_custom_packages/converge.yml | 1 + molecule/with_custom_packages/verify.yml | 3 ++- molecule/with_custom_packages_vagrant/converge.yml | 1 + molecule/with_custom_packages_vagrant/verify.yml | 1 + 8 files changed, 10 insertions(+), 2 deletions(-) diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 7ac62d7..0ebee03 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_pip_packages" ansible.builtin.include_role: diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index c4991c8..13a2988 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: diff --git a/molecule/default_vagrant/converge.yml b/molecule/default_vagrant/converge.yml index 7ac62d7..0ebee03 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_pip_packages" ansible.builtin.include_role: diff --git a/molecule/default_vagrant/verify.yml b/molecule/default_vagrant/verify.yml index 6a19956..7dc061d 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: diff --git a/molecule/with_custom_packages/converge.yml b/molecule/with_custom_packages/converge.yml index 7ac62d7..0ebee03 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_pip_packages" ansible.builtin.include_role: diff --git a/molecule/with_custom_packages/verify.yml b/molecule/with_custom_packages/verify.yml index fe21fc9..eb801b2 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: diff --git a/molecule/with_custom_packages_vagrant/converge.yml b/molecule/with_custom_packages_vagrant/converge.yml index 7ac62d7..0ebee03 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_pip_packages" ansible.builtin.include_role: diff --git a/molecule/with_custom_packages_vagrant/verify.yml b/molecule/with_custom_packages_vagrant/verify.yml index 3653684..326321f 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: