ansible-role-docker_nodeexp.../tasks/main.yml

10 lines
296 B
YAML

- name: Docker directory
ansible.builtin.file:
path: /opt/{{ docker_nodeexporter_service_id }}/
state: directory
- name: Prepare docker-compose.yml
ansible.builtin.template:
src: docker-compose.yml
dest: /opt/{{ docker_nodeexporter_service_id }}/
notify: docker-compose-up