Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
736 B

---
- name: Download binary
get_url:
url: "{{ docker_local_persist_url }}"
dest: /usr/local/bin/docker-volume-local-persist
mode: 755
checksum: sha1:{{ docker_local_persist_sha1 }}
tags: docker
- name: Install systemd unit
template: src=docker-volume-local-persist.service.j2 dest=/etc/systemd/system/docker-volume-local-persist.service
register: docker_local_persist_unit
notify: restart docker-volume-local-persist
tags: docker
- name: Reload systemd
systemd: daemon_reload=True
when: docker_local_persist_unit.changed
tags: docker
- name: Start and enable the service
service: name=docker-volume-local-persist state=started enabled=True
register: docker_local_persist_started
tags: docker