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

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

Loading…
Cancel
Save