Every role scenario with a converge now runs check right before it (a fresh host) and right after it (a configured host), and a script test fails a scenario without both. pihole and pve_lxc move their second check from after idempotence to after converge to match. The roles that failed under --check on a fresh host get the two allowed guards: cloudflared, docker, gitea, gitea_runner, traefik and user_management. ufw and fail2ban preview only a host where their package is installed, as their READMEs now say. Closes #134 Assisted-by: Claude Code
14 lines
328 B
YAML
14 lines
328 B
YAML
---
|
|
- name: Reload Systemd
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
|
|
- name: Restart Traefik
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: traefik
|
|
state: restarted
|
|
# Under --check on a first install there is no unit to restart yet.
|
|
when: not ansible_check_mode or traefik_installed | bool
|