Skip to content

Instantly share code, notes, and snippets.

@tbernacchi
Last active October 29, 2020 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbernacchi/b927f7df12920ff3bdc35df1499d52f8 to your computer and use it in GitHub Desktop.
Save tbernacchi/b927f7df12920ff3bdc35df1499d52f8 to your computer and use it in GitHub Desktop.
---
#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