ansible-infra/roles/docker_compose/handlers/main.yaml
June f943e95e2e
Some checks failed
/ Ansible Lint (push) Failing after 48s
fix ansible_lint issues
Use prefix for role variables, have an ending newline at the end of
files and use changed_when for command.
Also exclude *.sops.yaml files from ansible-lint.
2025-10-13 17:43:00 +02:00

13 lines
478 B
YAML

- name: docker compose down
ansible.builtin.command:
cmd: /usr/bin/docker compose down
chdir: /ansible_docker_compose
become: true
changed_when: true # This is always changed.
- name: docker compose reload script
ansible.builtin.command:
cmd: /usr/bin/docker compose {{ docker_compose__restart_cmd }}
chdir: /ansible_docker_compose
become: true
changed_when: true # Mark this as always changed (for now?).
when: docker_compose__restart_cmd != ""