Force initial apt-get update as part of test execution
Some OpenStack-CI providers have invalid apt caches and therefore need a forced update as an initial task in the test execution, or the tests will fail. This patch ensures that the apt cache is updated before any apt installations happen. Change-Id: I27236aa91197b20fe943823e28062afde7024f39
This commit is contained in:
parent
0c0b03b498
commit
4ee0d39710
|
@ -13,6 +13,15 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- hosts: localhost
|
||||
become: yes
|
||||
pre_tasks:
|
||||
# Make sure OS does not have a stale package cache.
|
||||
- name: Update apt cache.
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Playbook for pre-role testing 1of3
|
||||
hosts: 127.0.0.1
|
||||
connection: local
|
||||
|
|
Loading…
Reference in New Issue