diff --git a/roles/php_website/molecule/default/prepare.yml b/roles/php_website/molecule/default/prepare.yml index 8e6bf3dd17750b7d5fcb4e16eed0cb4007d142d0..7c284cf492336ff3983e3f2e031525b7e6edb44b 100644 --- a/roles/php_website/molecule/default/prepare.yml +++ b/roles/php_website/molecule/default/prepare.yml @@ -1,6 +1,6 @@ --- -- name: Set-up fixtures +- name: Prepare, test fixtures hosts: localhost connection: local gather_facts: false @@ -38,17 +38,15 @@ - 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 -- hosts: all - become: true - tasks: - - name: Update all caches to avoid errors due to missing remote archives apt: update_cache: true