Changed to webdav

This commit is contained in:
2026-07-11 16:35:08 +02:00
parent ac4fbe3744
commit 49a462ecb1
+24 -1
View File
@@ -27,12 +27,35 @@
echo "" >> /tmp/config_{{ inventory_hostname }}.txt echo "" >> /tmp/config_{{ inventory_hostname }}.txt
ip route show >> /tmp/config_{{ inventory_hostname }}.txt ip route show >> /tmp/config_{{ inventory_hostname }}.txt
# --- DNS (resolv.conf + systemd-resolved) --- # --- DNS ---
echo "=== Configuration DNS ===" >> /tmp/config_{{ inventory_hostname }}.txt echo "=== Configuration DNS ===" >> /tmp/config_{{ inventory_hostname }}.txt
cat /etc/resolv.conf >> /tmp/config_{{ inventory_hostname }}.txt cat /etc/resolv.conf >> /tmp/config_{{ inventory_hostname }}.txt
echo "" >> /tmp/config_{{ inventory_hostname }}.txt echo "" >> /tmp/config_{{ inventory_hostname }}.txt
resolvectl status >> /tmp/config_{{ inventory_hostname }}.txt 2>&1 || true resolvectl status >> /tmp/config_{{ inventory_hostname }}.txt 2>&1 || true
# --- Netplan ---
echo "=== Configuration Netplan ===" >> /tmp/config_{{ inventory_hostname }}.txt
if [ -d /etc/netplan ]; then
echo "Fichiers Netplan :" >> /tmp/config_{{ inventory_hostname }}.txt
ls -1 /etc/netplan >> /tmp/config_{{ inventory_hostname }}.txt
echo "" >> /tmp/config_{{ inventory_hostname }}.txt
for f in /etc/netplan/*.yaml; do
echo "--- $f ---" >> /tmp/config_{{ inventory_hostname }}.txt
cat "$f" >> /tmp/config_{{ inventory_hostname }}.txt
echo "" >> /tmp/config_{{ inventory_hostname }}.txt
done
# netplan get (Ubuntu 22.04+)
if command -v netplan >/dev/null 2>&1; then
echo "=== netplan get ===" >> /tmp/config_{{ inventory_hostname }}.txt
netplan get >> /tmp/config_{{ inventory_hostname }}.txt 2>&1 || true
fi
else
echo "Netplan non présent sur ce système." >> /tmp/config_{{ inventory_hostname }}.txt
fi
args: args:
creates: "/tmp/config_{{ inventory_hostname }}.txt" creates: "/tmp/config_{{ inventory_hostname }}.txt"