feat: add option to disable service restart
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2022-11-10 22:02:01 +01:00
parent 70c5937e2a
commit 77ccbd49e0
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@ network_hostname: localhost
network_fqdn: localdomain
network_reboot_enabled: True
network_restart_enabled: True
network_ipv6_enabled: True
network_defaultif: eth0

View File

@ -4,7 +4,9 @@
shell: "{{ __network_restart_command }}"
async: 1
poll: 0
when: not require_reboot | bool
when:
- network_restart_enabled | bool
- not require_reboot | bool
listen: __network_restart
tags:
- skip_ansible_later