cleanup: move tests to use ensure-package-repositories

In order to keep things clean, let's re-use the role we have
for setting up repos.

Change-Id: I989c4d45e28f94767ff9d63937d273d0542312f5
This commit is contained in:
Mohammed Naser 2020-04-04 16:18:07 -04:00 committed by Andreas Jaeger
parent 00cc4aa038
commit 1c95063442
2 changed files with 9 additions and 8 deletions

View File

@ -1,9 +1,10 @@
- hosts: all
roles:
- name: ensure-package-repositories
repositories_list:
- repo: ppa:projectatomic/ppa
tasks:
- name: Add project atomic PPA
become: true
apt_repository:
repo: ppa:projectatomic/ppa
- name: Install packages
become: true
package:

View File

@ -34,11 +34,11 @@
- hosts: executor
name: Set up a simulated executor
roles:
- name: ensure-package-repositories
repositories_list:
- repo: ppa:projectatomic/ppa
tasks:
- name: Add project atomic PPA
become: true
apt_repository:
repo: ppa:projectatomic/ppa
- name: Install packages
become: true
package: