diff --git a/roles/web_server/molecule/default/prepare.yml b/roles/web_server/molecule/default/prepare.yml index 90e28a280cd84ee3834bfebc24d5eb9d3a698e99..4b6039e3e89142d7773bd011e505ec30662c2cc4 100644 --- a/roles/web_server/molecule/default/prepare.yml +++ b/roles/web_server/molecule/default/prepare.yml @@ -1,6 +1,6 @@ --- -- name: Set-up fixtures +- name: Prepare, test fixtures hosts: localhost connection: local gather_facts: false @@ -36,17 +36,14 @@ - 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 @@ -59,7 +56,8 @@ - nmap state: present -- hosts: bookworm +- name: Prepare, test fixtures + hosts: bookworm become: true tasks: @@ -81,7 +79,8 @@ mode: 0644 state: present -- hosts: all +- name: Prepare, test fixtures + hosts: all become: true tasks: @@ -104,7 +103,8 @@ name: curl state: present -- hosts: client +- name: Prepare, helpers + hosts: client become: true tasks: