From f5edc840e222bc3914767f470fe67a61ad195cc5 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 7 Jul 2017 14:25:27 -0700 Subject: [PATCH] Update docker_secret test for RHEL 7.3 on AWS. --- .../targets/docker_secret/tasks/RedHat.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/docker_secret/tasks/RedHat.yml b/test/integration/targets/docker_secret/tasks/RedHat.yml index 51f466d5646..fe5675a7b6a 100644 --- a/test/integration/targets/docker_secret/tasks/RedHat.yml +++ b/test/integration/targets/docker_secret/tasks/RedHat.yml @@ -1,3 +1,6 @@ +# The RHEL extras repository must be enabled to provide the container-selinux package. +# See: https://docs.docker.com/engine/installation/linux/docker-ee/rhel/#install-using-the-repository + - name: Install Docker pre-reqs yum: name: "{{ item }}" @@ -6,9 +9,11 @@ - yum-utils - device-mapper-persistent-data - lvm2 - - python-crypto - libseccomp +- name: Enable extras repository for RHEL on AWS + command: yum-config-manager --enable rhui-REGION-rhel-server-extras + - name: Add repository command: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo @@ -19,3 +24,9 @@ yum: name: docker-ce state: present + +- name: Make sure the docker daemon is running (failure expected inside docker container) + service: + name: docker + state: started + ignore_errors: yes