hpc-cloud/roles/dockerregistry/tasks/main.yml

26 lines
562 B
YAML
Raw Normal View History

# Install a docker based mariadb.
---
- include: ../common/tasks/docker.yml
- name: install service file.
template:
src: files/dockerregistry.service
dest: /etc/systemd/system/dockerregistry.service
mode: 644
owner: root
group: root
- name: install service file
command: systemctl daemon-reload
- name: make sure service is started
systemd:
name: dockerregistry.service
state: started
- name: Copy certificates and passwd file
copy:
src: "{{ item }}"
dest: /srv/dockerregistry
with_items:
- auth
- certs