mirror of
https://gitea.0xace.cc/ansible-galaxy/docker.git
synced 2025-04-05 08:01:55 +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_install_official_repo: true
|
||||
|
@ -10,6 +10,7 @@
|
||||
url: "{{ item.url }}"
|
||||
keyring: "{{ item.keyring }}"
|
||||
loop: "{{ docker_apt_key }}"
|
||||
when: docker_install_official_repo
|
||||
|
||||
- name: Add Docker repository
|
||||
ansible.builtin.apt_repository:
|
||||
@ -18,6 +19,7 @@
|
||||
filename: "{{ item.filename }}"
|
||||
update_cache: yes
|
||||
loop: "{{ docker_apt_repository }}"
|
||||
when: docker_install_official_repo
|
||||
|
||||
- name: Ensure {{ docker_package }} installed
|
||||
apt:
|
||||
|
@ -11,6 +11,7 @@
|
||||
gpgkey: "{{ item.gpgkey | default('omit') }}"
|
||||
async: "{{ item.async | default('yes') }}"
|
||||
loop: "{{ docker_rpm_repository }}"
|
||||
when: docker_install_official_repo
|
||||
|
||||
- name: Ensure {{ docker_package }} is installed
|
||||
yum:
|
||||
|
Loading…
x
Reference in New Issue
Block a user