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

This commit is contained in:
David Wilson 2018-08-13 13:32:23 +01:00
parent 27c1f3e21e
commit 3113bf6228
2 changed files with 4 additions and 6 deletions

View File

@ -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:

View File

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