lucascbeyeler.baseline
Baseline
========= This is a simple guide to update and install all the necessary packages for a server.
Requirements
- You need Ansible version 2.9.6 or higher.
Installation
Baseline is available in Ansible Galaxy. To install it on your machine, use the following command:
ansible-galaxy install lucascbeyeler.baseline
Update
If a new version of ansible-commons is released, you should run the install command again, but add the "-f" or "--force" option:
ansible-galaxy install -f lucascbeyeler.baseline
Features
- Updates the system and installs basic packages (like vim, unzip, ntp, and ca-certificates).
- Configures an NTP client and sets the timezone.
- Changes the hostname and updates the
/etc/hosts
file for local resolution. - Enables services like NTP to start at boot (for Upstart and SystemD).
- Hides the message of the day (MOTD) by including hushlogin.
- Changes the default SSH port.
- Disables root login via SSH.
Role Variables
- hostname: Set your server's hostname (without the domain).
- domain: Set the domain and primary domain for your server.
- timezone: Provide the timezone to set on your server.
- enable_hushlogin: Enable hush login for all users.
- ssh_port: Define the default port for OpenSSH Server.
Example Playbook
Here is a simple example of how to use this role with given variables:
- hosts: all
become: yes
become_method: sudo
roles:
- role: lucascbeyeler.baseline
hostname: pikachu
domain: johto.com
timezone: America/Sao_Paulo
enable_hushlogin: true
ssh_port: 8080
License
Check the official GNU website for more details: http://www.gnu.org/licenses/gpl.html.
Author Information
- Lucas Costa Beyeler - GitHub Profile - sysdevbey@gmail.com
Informazioni sul progetto
Baseline playbook to update and install all the packages needed for a server
Installa
ansible-galaxy install lucascbeyeler.baseline
Licenza
gpl-3.0
Download
687
Proprietario
Whether we wanted it or not, we've stepped into a war with the Cabal on Mars. So let's get to taking out their command, one by one.