tests: fix debops tests (py-apt broken if /var/lbi/apt missing)

pull/350/head
David Wilson 6 years ago
parent 27c1f3e21e
commit 3113bf6228

@ -13,7 +13,7 @@
fi
- hosts: all
strategy: mitogen_linear
strategy: mitogen_free
# Can't gather facts before here.
gather_facts: true
vars:
@ -60,12 +60,10 @@
- command: yum clean all
when: distro == "CentOS"
- file:
path: "{{item}}"
state: absent
- shell: rm -rf {{item}}/*
with_items:
- /var/cache/apt
- /var/lib/apt
- /var/lib/apt/lists
when: distro == "Debian"
- user:

@ -6,7 +6,7 @@
- hosts: all
gather_facts: true
strategy: mitogen_linear
strategy: mitogen_free
become: true
vars:
distro: "{{ansible_distribution}}"

Loading…
Cancel
Save