You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/roles/service_state/defaults/main.yml

15 lines
374 B
YAML

---
service_state_commands:
- key: up
command: "docker-compose up -d"
- key: down
command: "docker-compose down"
- key: upgrade
command: "docker-compose pull && docker-compose down && docker-compose up -d"
service_state_command: "{{ service_state_commands
| selectattr('key', 'match', service_state )
| map(attribute='command')
| list
| first }}"