grub forditott diszk javitas, ssh x11forward tiltas

This commit is contained in:
ROTTLER Tamas 2024-12-17 21:55:44 +01:00
parent 76275de111
commit 66117f14be

View File

@ -104,6 +104,12 @@
- ansible_distribution == "Debian"
- ansible_distribution_major_version == "8"
# ha veletlenul /dev/sdb lesz a bootdisk, elhasalna a grub-pc non-interacive
# upgrade-je a kovetkezo lepesben
- name: set debconf grub-pc/install_devices to /dev/sdb if needed
tags: apt
shell: 'mount | grep -q "/dev/sdb1 .* /boot" && (echo "set grub-pc/install_devices /dev/sdb" | debconf-communicate) || true'
- name: apt update
tags: apt
apt:
@ -120,6 +126,10 @@
apt:
upgrade: full
- name: reset grub-pc/install_devices if changed 4 steps earlier
tags: apt
shell: 'mount | grep -q "/dev/sdb1 .* /boot" && (echo "set grub-pc/install_devices /dev/sda" | debconf-communicate) || true'
- name: install common packages for all opsys versions
tags: apt
apt:
@ -234,6 +244,11 @@
state: absent
key: "{{ mgmt_ssh_key }}"
- name: "disable sshd X11Forwarding"
copy:
content: "X11Forwarding no"
dest: /etc/ssh/sshd_config.d/x11forwarding.conf
- name: copy pf6 package
tags: pf6
copy: