Last active
October 29, 2020 19:05
-
-
Save tbernacchi/b927f7df12920ff3bdc35df1499d52f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
#SELINUX | |
- name: Desabilitando o SeLinux | |
selinux: policy=targeted state=disabled | |
#FIREWALLD | |
- name: Desabilitando o firewalld | |
systemd: name=firewalld state=stopped enabled=no | |
#TIMEZONE | |
- name: Ajustando o timezone do sistema | |
timezone: name=America/Sao_Paulo | |
#IDIOMA | |
- name: Alterando o idioma do sistema | |
command: /bin/localectl set-locale LANG=pt_BR.utf8 | |
#TECLADO | |
- name: Alterando o teclado do sistema | |
command: /bin/localectl set-keymap br-abnt2 | |
#NTP | |
- name: Instalando o NTP/ntpdate | |
yum: pkg={{ item }} state=installed | |
with_items: | |
- ntp | |
- ntpdate | |
- name: Parando o ntp | |
command: systemctl stop ntpd | |
- name: Ajustando a hora e habilitando o ntp | |
command: "{{item}}" | |
with_items: | |
- ntpdate -v -b a.st1.ntp.br | |
- timedatectl set-ntp yes | |
- systemctl enable ntpd | |
- name: Startando o ntpd | |
command: systemctl start ntpd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment