Run the command in the terminal:
# 01 - Run the playbook.
# The default inventory is "home".
ansible-playbook host_machines.yml
ansible-playbook host_machines.yml -i "inventory/home"
ansible-playbook host_machines.yml -i "inventory/homelab"
- Set the timezone to America/Maceio.
- Set the locale to UTF-8.
- Install required packages.
- Set Brazilian NTP servers.
- The usr_ansible account is created on each host. This will be the user that Ansible will use to connect and run commands. It must have a very strong password.
- Disable IPV6 by setting GRUB_CMDLINE_LINUX="ipv6.disable=1".
- Copy the network config file to the host.
- Edit the grub file so the network cards (NIC) are named as eth0 - ethX.
- Remove unnecessary packages.
- Luciano Sampaio.