Skip to content

Commit

Permalink
Fixed issues with docker repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentganne committed Aug 12, 2021
1 parent f58a322 commit 83458c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions org/ystia/docker/ansible/playbooks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@

- set_fact:
# The baseurl of the RedHat/CentOS docker repository.
redhat_docker_repository: "{{ REPOSITORY_URL if (REPOSITORY_URL != '') else ('https://download.docker.com/linux/centos/7/$basearch/stable') }}"
redhat_docker_repository: "{{ REPOSITORY_URL }}"
redhat_docker_gpgkey: "{{ DOCKER_GPGKEY if (DOCKER_GPGKEY != '') else ('https://download.docker.com/linux/centos/gpg') }}"
# The baseurl of the Debian/Ubuntu docker repository.
debian_docker_repository: "{{ REPOSITORY_URL if (REPOSITORY_URL != '') else ('deb https://download.docker.com/linux/ubuntu xenial stable') }}"
debian_docker_repository: "{{ REPOSITORY_URL }}"
debian_docker_gpgkey: "{{ DOCKER_GPGKEY if (DOCKER_GPGKEY != '') else ('https://download.docker.com/linux/ubuntu/gpg') }}"
docker_package_name: "docker-ce{{ '-' if (DOCKER_VERSION != '') else ('') }}{{ DOCKER_VERSION if (DOCKER_VERSION != '') else ('') }}"

- set_fact:
redhat_docker_repository: "https://download.docker.com/linux/centos/{{ ansible_distribution_major_version }}/$basearch/stable"
debian_docker_repository: "deb https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
when: REPOSITORY_URL == ""

- name: Add Docker Yum repository
yum_repository:
name: docker
Expand Down
1 change: 1 addition & 0 deletions org/ystia/docker/ansible/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ metadata:
template_version: 3.0.0-SNAPSHOT
template_author: Ystia

description: Docker types
imports:
- tosca-normative-types:1.0.0-ALIEN20
- yorc-types:1.1.0
Expand Down

0 comments on commit 83458c0

Please sign in to comment.