ci: fix molecule prepare
This commit is contained in:
parent
c94647981d
commit
b0eba13a65
@ -10,7 +10,6 @@ ansible:
|
|||||||
|
|
||||||
rules:
|
rules:
|
||||||
exclude_files:
|
exclude_files:
|
||||||
- molecule/
|
|
||||||
- "LICENSE*"
|
- "LICENSE*"
|
||||||
- "**/*.md"
|
- "**/*.md"
|
||||||
- "**/*.ini"
|
- "**/*.ini"
|
||||||
|
@ -3,18 +3,9 @@
|
|||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
tasks:
|
tasks:
|
||||||
- name: Bootstrap python for Ansible
|
- name: Bootstrap Python for Ansible
|
||||||
raw: |
|
ansible.builtin.raw: |
|
||||||
command -v python3 python || (
|
command -v python3 python ||
|
||||||
(test -e /usr/bin/apt && (apt -y update && apt install -y python-minimal)) ||
|
((test -e /usr/bin/apt && (apt -y update && apt install -y python-minimal)) ||
|
||||||
echo "Warning: Python not boostrapped due to unknown platform."
|
echo "Warning: Python not boostrapped due to unknown platform.")
|
||||||
)
|
|
||||||
changed_when: False
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user