Skip to content

Commit 1d3968d

Browse files
authored
Merge pull request #534 from hollow/no-nightly
Remove broken nightly repo
2 parents 30ba308 + 016fe1a commit 1d3968d

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
105105
docker_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'
107106
docker_yum_repo_enable_test: '0'
108107
docker_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

113112
You can change `docker_yum_gpg_key` to a different url if you are behind a firewall or provide a trustworthy mirror.
114113
Usually in combination with changing `docker_yum_repository` as well.

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ docker_apt_filename: "docker"
5454

5555
# Used only for RedHat/CentOS/Fedora.
5656
docker_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'
5857
docker_yum_repo_enable_test: '0'
5958
docker_yum_gpg_key: "{{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/gpg"
6059

tasks/setup-RedHat.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,25 @@
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

0 commit comments

Comments
 (0)