File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed
Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,11 @@ You can change `docker_apt_gpg_key` to a different url if you are behind a firew
103103
104104` ` ` yaml
105105docker_yum_repo_url: "{{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/docker-{{ docker_edition }}.repo"
106- docker_yum_repo_enable_nightly: '0'
107106docker_yum_repo_enable_test: '0'
108107docker_yum_gpg_key: "{{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/gpg"
109108` ` `
110109
111- (Used only for RedHat/CentOS.) You can enable the Nightly or Test repo by setting the respective vars to `1`.
110+ (Used only for RedHat/CentOS.) You can enable the Test repo by setting the respective vars to `1`.
112111
113112You can change `docker_yum_gpg_key` to a different url if you are behind a firewall or provide a trustworthy mirror.
114113Usually in combination with changing `docker_yum_repository` as well.
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ docker_apt_filename: "docker"
5454
5555# Used only for RedHat/CentOS/Fedora.
5656docker_yum_repo_url : " {{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/docker-{{ docker_edition }}.repo"
57- docker_yum_repo_enable_nightly : ' 0'
5857docker_yum_repo_enable_test : ' 0'
5958docker_yum_gpg_key : " {{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/gpg"
6059
Original file line number Diff line number Diff line change 1313- name : Add Docker repository.
1414 get_url :
1515 url : " {{ docker_yum_repo_url }}"
16- dest : ' /etc/yum.repos.d/docker-{{ docker_edition }}.repo'
16+ dest : " /etc/yum.repos.d/docker-{{ docker_edition }}.repo"
1717 owner : root
1818 group : root
1919 mode : 0644
2020 when : docker_add_repo | bool
2121
22- - name : Configure Docker Nightly repo.
22+ - name : Remove Docker Nightly repo.
2323 ini_file :
24- dest : ' /etc/yum.repos.d/docker-{{ docker_edition }}.repo'
25- section : ' docker-{{ docker_edition }}-nightly'
26- option : enabled
27- value : ' {{ docker_yum_repo_enable_nightly }}'
28- mode : 0644
29- no_extra_spaces : true
24+ dest : " /etc/yum.repos.d/docker-{{ docker_edition }}.repo"
25+ section : " docker-{{ docker_edition }}-nightly"
26+ state : absent
3027 when : docker_add_repo | bool
3128
3229- name : Configure Docker Test repo.
3330 ini_file :
34- dest : ' /etc/yum.repos.d/docker-{{ docker_edition }}.repo'
35- section : ' docker-{{ docker_edition }}-test'
31+ dest : " /etc/yum.repos.d/docker-{{ docker_edition }}.repo"
32+ section : " docker-{{ docker_edition }}-test"
3633 option : enabled
37- value : ' {{ docker_yum_repo_enable_test }}'
34+ value : " {{ docker_yum_repo_enable_test }}"
3835 mode : 0644
3936 no_extra_spaces : true
4037 when : docker_add_repo | bool
You can’t perform that action at this time.
0 commit comments