diff --git a/.later.yml b/.later.yml index 8ae3cb2..2703cb9 100644 --- a/.later.yml +++ b/.later.yml @@ -10,7 +10,6 @@ ansible: rules: exclude_files: - - molecule/ - "LICENSE*" - "**/*.md" - "**/*.ini" diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 3f1ce5e..0df1d77 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -3,18 +3,9 @@ hosts: all gather_facts: False tasks: - - name: Bootstrap python for Ansible - raw: | - command -v python3 python || ( - (test -e /usr/bin/apt && (apt -y update && apt install -y python-minimal)) || - echo "Warning: Python not boostrapped due to unknown platform." - ) + - name: Bootstrap Python for Ansible + ansible.builtin.raw: | + command -v python3 python || + ((test -e /usr/bin/apt && (apt -y update && apt install -y python-minimal)) || + echo "Warning: Python not boostrapped due to unknown platform.") changed_when: False - - - name: Wait for apt lock - shell: while fuser /var/lib/apt/lists/lock >/dev/null 2>&1; do echo 'Waiting for apt list lock.' && sleep 10; done - changed_when: False - - - name: Update package cache - apt: - update_cache: True