Open pavlozt opened 10 months ago
Ansible does not yet support globs in the systemd module. It is unknown when support for Systemd enumerator will appear, so I suggest slightly modifying examples in the Readme for now:
nut_services:
- nut-driver@apc
- nut-monitor
- nut-server
оr even use systemd target like :
nut_services:
- nut-driver.target
- nut-monitor
- nut-server
In modern versions of systemd it is necessary correctly process service names
Error
for example, if Idefine single UPS named "apc"
got error :
because there are no "nut-driver" service in debian 12, but created named "nut-driver@apc" service.
Workaround
Define additional variable :