Compare commits

..

No commits in common. "eb1f997830ad3e3b73c64099f7624a6388c5d641" and "e6466839ea4c21f68e0e483e226fb6e55d9690bb" have entirely different histories.

3 changed files with 4 additions and 20 deletions

View file

@ -39,7 +39,7 @@ else
exit 1 exit 1
fi fi
#DESKTOP=desktop #DESKTOP=desktop
INST_OPTIONS="inst.lang=fr_FR inst.keymap=fr-latin9 panic=1 ks.sendsn ks.sendmac inst.sshd=1 net.ifnames=0 biosdevname=0 $DESKTOP" INST_OPTIONS="lang=fr_FR keymap=fr-latin9 panic=1 ks.sendsn ks.sendmac inst.sshd=1 net.ifnames=0 biosdevname=0 $DESKTOP"
INST_OPTIONS="${INST_OPTIONS} inst.vnc inst.vncpassword=SDFGHJKL" INST_OPTIONS="${INST_OPTIONS} inst.vnc inst.vncpassword=SDFGHJKL"
if [ -z "$DNS" ]; then if [ -z "$DNS" ]; then
if [ $(whois $IP | grep -ci dedibox) -gt 0 ]; then if [ $(whois $IP | grep -ci dedibox) -gt 0 ]; then
@ -66,7 +66,7 @@ fi
if [ ! -z "$STATIC" ]; then if [ ! -z "$STATIC" ]; then
INST_OPTIONS="ip=$IP::$GW:$MASK:$(hostname -s):$IF:off:${DNS/,*} ${INST_OPTIONS}" INST_OPTIONS="ip=$IP::$GW:$MASK:$(hostname -s):$IF:off:${DNS/,*} ${INST_OPTIONS}"
fi fi
if [ -f /boot/grub2/grub.cfg -o -f /boot/efi/EFI/centos/grub.cfg -o -f /boot/efi/EFI/redhat/grub.cfg ]; then if [ -f /boot/grub2/grub.cfg -o -f /boot/efi/EFI/centos/grub.cfg ]; then
if [ $(sed 's/ /\n/g' /proc/cmdline | grep -c console) -gt 1 ]; then if [ $(sed 's/ /\n/g' /proc/cmdline | grep -c console) -gt 1 ]; then
# echo "On ajoute les console pour avoir une config également en serial" # echo "On ajoute les console pour avoir une config également en serial"
CONSOLE="$(for i in `sed 's/ /\n/g' /proc/cmdline | grep console`; do echo -n "$i "; done | sed 's/ $//')" CONSOLE="$(for i in `sed 's/ /\n/g' /proc/cmdline | grep console`; do echo -n "$i "; done | sed 's/ $//')"
@ -97,9 +97,7 @@ menuentry 'CentOS ${CENTOS_VERSION} Install (PXE)' --unrestricted {
initrd $PARTBOOT/initrd.img initrd $PARTBOOT/initrd.img
} }
EOF EOF
if [ -d /sys/firmware/efi -a -e /boot/efi/EFI/redhat/grub.cfg ]; then if [ -d /sys/firmware/efi -a -e /boot/efi/EFI/centos/grub.cfg ]; then
CONFDIR=/boot/efi/EFI/redhat
elif [ -d /sys/firmware/efi -a -e /boot/efi/EFI/centos/grub.cfg ]; then
CONFDIR=/boot/efi/EFI/centos CONFDIR=/boot/efi/EFI/centos
else else
CONFDIR=/boot/grub2 CONFDIR=/boot/grub2

View file

@ -22,19 +22,6 @@
- epel-release - epel-release
when: when:
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
- not ansible_distribution == "OracleLinux"
- not ansible_machine == "armv7l"
- not ansible_machine == "armv6l"
- name: Install EPEL repo definition packages for OracleLinux on x86_64 and aarch64 plateform
package:
name: "{{ item }}"
update_cache: yes
state: present
with_items:
- oracle-epel-release-el8
when:
- ansible_distribution == "OracleLinux"
- not ansible_machine == "armv7l" - not ansible_machine == "armv7l"
- not ansible_machine == "armv6l" - not ansible_machine == "armv6l"
@ -169,6 +156,6 @@
- not hostsallow.stat.exists - not hostsallow.stat.exists
when: when:
- ansible_os_family == "RedHat" - ansible_os_family == "RedHat"
# - ansible_distribution_major_version < '8' - ansible_distribution_major_version < '8'
tags: tags:
- base - base

View file

@ -24,7 +24,6 @@ base_packages:
- wget - wget
- xz - xz
- dnf-automatic - dnf-automatic
- tcp_wrappers
base_packages_servers: base_packages_servers:
- "@^minimal-environment" - "@^minimal-environment"