summaryrefslogtreecommitdiffstats
path: root/ansible/test/roles/prepare-docker/tasks/prepare-docker-repos.yml
blob: f35ffeee6d13e7244e9a98ce12636e5e98adcc20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: Install Docker-CE repo
  yum_repository:
    name: docker-ce
    description: Docker-ce YUM repo
    baseurl: https://download.docker.com/linux/centos/7/x86_64/stable/
    gpgcheck: true
    gpgkey: https://download.docker.com/linux/centos/gpg

- name: Create rpm dir
  file:
    path: "{{ rpm_dir }}"
    state: directory

- name: Handle python2-docker dependency needed by Ansible's docker_* modules
  import_tasks: python2-docker.yml

- name: Handle docker-ce packages
  import_tasks: docker-packages.yml

- name: Fake dockerd on container
  import_tasks: docker-socket-override.yml
  when: ansible_env.container == 'docker'