Switch tests to use Molecule.

This commit is contained in:
Jeff Geerling
2018-09-26 22:13:32 -05:00
parent bac7157eda
commit 41f9315a49
11 changed files with 97 additions and 56 deletions

View File

@@ -3,5 +3,5 @@
user:
name: "{{ item }}"
groups: docker
append: yes
append: true
with_items: "{{ docker_users }}"

View File

@@ -29,11 +29,11 @@
- name: Add Docker apt key (alternative for older systems without SNI).
shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
args:
warn: no
warn: false
when: add_repository_key is failed
- name: Add Docker repository.
apt_repository:
repo: "{{ docker_apt_repository }}"
state: present
update_cache: yes
update_cache: true