- name: Update consul config on alpine linux hosts: all tasks: - name: Update traefik config ansible.builtin.copy: mode: preserve src: ./host_config/traefik.yml dest: /etc/traefik/traefik.yaml # Alpine default config is yaml - name: Restart traefik service ansible.builtin.service: name: traefik state: restarted enabled: true