Fixed taging for disabled host

This commit is contained in:
ladislav.dusa
2025-04-09 12:17:00 +02:00
parent 187c422759
commit 2285c420ec

View File

@ -1,4 +1,7 @@
- name: Allow the backup jd to sudo /myapps/omv_backup.py
- name: Set sudoers
become: "{{ false if inventory_hostname == 'nas.home.lan' else true }}"
block:
- name: Allow the backup jd to sudo /myapps/omv_backup.py
community.general.sudoers:
name: allow-backup
state: present