tag plays in playbooks (instead of tasks in roles)

This commit is contained in:
June 2026-05-18 18:14:51 +02:00
commit 73e77bde70
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
10 changed files with 49 additions and 20 deletions

View file

@ -1,19 +1,16 @@
---
- name: reload knot
tags: [ auth-dns ]
become: true
ansible.builtin.systemd:
name: knot.service
state: reloaded
- name: netplan apply
tags: [ auth-dns ]
become: true
changed_when: true
ansible.builtin.command: "netplan apply"
- name: restart knot-exporter
tags: [ auth-dns ]
become: true
ansible.builtin.systemd:
name: knot-exporter.service