docker-distribution: Initial version of role

This commit is contained in:
Timo Makinen 2021-09-14 16:25:58 +00:00
parent 4547044a07
commit fd8e0e8558
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
- name: install packages
package:
name: docker-distribution
state: installed
- name: create config file
template:
dest: /etc/docker-distribution/registry/config.yml
src: config.yml.j2
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart docker-distribution
- name: start service
service:
name: docker-distribution
state: started
enabled: true