mirror of
https://gitea.0xace.cc/ansible-galaxy/docker.git
synced 2025-04-06 00:01:57 +00:00
add docker_install_official_repo flag for custom repos
This commit is contained in:
parent
86e2ef8735
commit
fb374b732b
@ -1,2 +1,3 @@
|
|||||||
---
|
---
|
||||||
docker_version: "20.10.23"
|
docker_version: "20.10.23"
|
||||||
|
docker_install_official_repo: true
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
keyring: "{{ item.keyring }}"
|
keyring: "{{ item.keyring }}"
|
||||||
loop: "{{ docker_apt_key }}"
|
loop: "{{ docker_apt_key }}"
|
||||||
|
when: docker_install_official_repo
|
||||||
|
|
||||||
- name: Add Docker repository
|
- name: Add Docker repository
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
@ -18,6 +19,7 @@
|
|||||||
filename: "{{ item.filename }}"
|
filename: "{{ item.filename }}"
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
loop: "{{ docker_apt_repository }}"
|
loop: "{{ docker_apt_repository }}"
|
||||||
|
when: docker_install_official_repo
|
||||||
|
|
||||||
- name: Ensure {{ docker_package }} installed
|
- name: Ensure {{ docker_package }} installed
|
||||||
apt:
|
apt:
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
gpgkey: "{{ item.gpgkey | default('omit') }}"
|
gpgkey: "{{ item.gpgkey | default('omit') }}"
|
||||||
async: "{{ item.async | default('yes') }}"
|
async: "{{ item.async | default('yes') }}"
|
||||||
loop: "{{ docker_rpm_repository }}"
|
loop: "{{ docker_rpm_repository }}"
|
||||||
|
when: docker_install_official_repo
|
||||||
|
|
||||||
- name: Ensure {{ docker_package }} is installed
|
- name: Ensure {{ docker_package }} is installed
|
||||||
yum:
|
yum:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user