22 lines
559 B
YAML
22 lines
559 B
YAML
# tasks file for ansible-role-container-registry
|
|
|
|
- name: ensure docker-distribution is installed
|
|
yum:
|
|
name: docker-distribution
|
|
state: present
|
|
|
|
- name: manage /etc/docker-distribution/registry/config.yml
|
|
template:
|
|
src: docker-distribution-config.yml.j2
|
|
dest: /etc/docker-distribution/registry/config.yml
|
|
notify: restart docker-distribution service
|
|
|
|
- name: force systemd to reread configs
|
|
meta: flush_handlers
|
|
|
|
- name: enable and start docker-distribution
|
|
systemd:
|
|
enabled: true
|
|
state: started
|
|
name: docker-distribution
|