delete print hostname

This commit is contained in:
Ruben Blanco 2023-10-16 15:24:14 +02:00
parent a6514a6691
commit ac81877c7c
1 changed files with 19 additions and 15 deletions

View File

@ -1,16 +1,5 @@
--- ---
# change hostname
#- name: change hostname
# hostname:
# name: "{{ hostname_name }}"
# when: hostname_name is defined
# Print hostname nodename
- name: Print hostname nodename
debug:
msg: system nodename is "{{ ansible_nodename }}"
# Reconfigure locales - enable en_US-UTF8 and es_ES-UTF8 # Reconfigure locales - enable en_US-UTF8 and es_ES-UTF8
- name: reconfigure locales enable en_US-UTF8 and es_ES-UTF8 - name: reconfigure locales enable en_US-UTF8 and es_ES-UTF8
debconf: debconf:
@ -124,6 +113,10 @@
# notify: apply reconfig # notify: apply reconfig
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# NEEDS to INSTALL more MODULES with -> ansible-galaxy collection install community.general
#
# Send mail to verify relay-host # Send mail to verify relay-host
#- name: sending mail to verify exim4 config works #- name: sending mail to verify exim4 config works
# mail: # mail:
@ -135,9 +128,20 @@
# - informatica@verdnatura.es # - informatica@verdnatura.es
# - rubenb@verdnatura.es # - rubenb@verdnatura.es
# delegate_to: localhost # delegate_to: localhost
## #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# configure centralized authentication #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copy # configure centralized authentication [nslcd]
# paso1 - Copy
# lineinfile password # paso2 - lineinfile password with vault
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Proteger grub
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Install and configure FAIL2BAN
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++