nrec-ansible/project/roles/registry/tasks/main.yml

22 lines
439 B
YAML
Raw Normal View History

2022-01-12 20:25:11 +00:00
---
- name: Create registry.service
ansible.builtin.template:
src: registry.service.j2
dest: /etc/systemd/system/registry.service
notify:
- reload systemd
- restart registry
- name: Flush handlers
meta: flush_handlers
- name: Ensure service is started
ansible.builtin.systemd:
state: started
name: registry
- name: Ensure service is enabled
ansible.builtin.systemd:
enabled: yes
name: registry