add fix-ifupdown-resolved-hook.yml: workaround for ifupdown resolved hooks.
/etc/network/if-up.d/resolved and if-down.d/resolved (Debian 12 and 13) use 'return' outside of a function. With /bin/sh -> bash (basic.yml, tag symlink-sh) 'ifup lo' fails and networking.service ends up as 'failed'. Same task file as in ansible/oopen-server: divert both hooks and turn every top-level 'return' into 'exit 0'. Tag: fix-ifupdown-resolved-hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e05de7e26f
commit
d706a4dd46
2 files changed
+108
No files matched your search
@@ -11,6 +11,19 @@
|
||||
- basic
|
||||
|
||||
|
||||
# Workaround ifupdown-Paketbug: /etc/network/if-{up,down}.d/resolved verwenden
|
||||
# "return" auf oberster Ebene, was mit /bin/sh -> bash (basic.yml, Tag
|
||||
# symlink-sh) fehlschlägt: "ifup lo" scheitert, networking.service "failed".
|
||||
#
|
||||
# tags supported inside fix-ifupdown-resolved-hook.yml
|
||||
#
|
||||
# fix-ifupdown-resolved-hook
|
||||
- name: Fix ifupdown resolved-Hook (return-Bug)
|
||||
ansible.builtin.include_tasks: fix-ifupdown-resolved-hook.yml
|
||||
tags:
|
||||
- fix-ifupdown-resolved-hook
|
||||
|
||||
|
||||
# tags supported inside sshd.yml
|
||||
#
|
||||
# sshd-config
|
||||
|
||||
Reference in new issue
Block a user