diff --git a/roles/backup_server/molecule/default/prepare.yml b/roles/backup_server/molecule/default/prepare.yml index 85d51d2ea5b4f1aac00053e50d0a4a2dfb2bfb8b..d5df27dc533f1e55e4f81dfdc20b703950416bd9 100644 --- a/roles/backup_server/molecule/default/prepare.yml +++ b/roles/backup_server/molecule/default/prepare.yml @@ -1,11 +1,7 @@ --- -- name: Prepare - hosts: all - gather_facts: false - tasks: - -- hosts: localhost +- name: Prepare, test fixtures + hosts: localhost connection: local tasks: @@ -17,13 +13,14 @@ - tests/data/ssh/client1 - tests/data/ssh/client2 -- hosts: all +- name: Prepare + hosts: all become: true + gather_facts: false tasks: - name: Install python for Ansible raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-minimal) - become: true changed_when: false - name: Update all caches to avoid errors due to missing remote archives