update chrony & readme

This commit is contained in:
Yacine31
2021-06-20 21:40:32 +02:00
parent 11fea62a3c
commit f2e17b92c6
2 changed files with 18 additions and 38 deletions

View File

@@ -2,46 +2,38 @@
# ---------------------------------------------------
# configuration des packages necessaires pour Linux
# ---------------------------------------------------
# - name: Installation du packet libselinux-python
# yum: name="libselinux-python" state=installed
- name: Installation des packages communs pour Linux
yum: name={{ item }} state=installed
tags: linux_packages
with_items:
- bind-utils
- xdpyinfo
- xauth
- net-tools
- chrony
- ethtool
- nscd
- sysstat
- tree
- unzip
- wget
- vim
- lvm2
- nc
- ncurses
- net-tools
- nfs-utils
- nscd
- readline
- xfsprogs
- sysstat
- system-storage-manager
- tree
- unzip
- vim
- wget
- xauth
- xdpyinfo
- xfsprogs
# ---------------------------------------------------
# configuration Linux : Mode panic
# ---------------------------------------------------
- name: Configuratio du mode panic sur perte du /
shell: free_form="tune2fs -e panic `df -P / |tail -1 | awk '{print $1}'`"
- name: Configuratio du mode panic sur bug du kernel
sysctl: name=kernel.panic_on_oops value=1 state=present reload=yes ignoreerrors=yes
# ---------------------------------------------------
# Installation du package chrony
# ---------------------------------------------------
- name: Installation du package chrony
yum: name="chrony" state=installed
- name: restart chronyd
service: name=chronyd state=started enabled=yes
# ---------------------------------------------------
# configuration Linux : Selinux

View File

@@ -1,23 +1,11 @@
ansible sur le poste à configurer
===
yum install -y wget bzip2 unzip
$ wget https://github.com/ownport/portable-ansible/releases/download/v0.4.2/portable-ansible-v0.4.2-py2.tar.bz2
$ tar xvfj portable-ansible-v0.4.2-py2.tar.bz2
$ ln -s ansible ansible-playbook
creer un fichier hosts.oracle avec le contenu suivant
[local]
localhost ansible_connection=local
yum install -y wget bzip2 unzip git
$ pwd = /root
récupérer mes playbooks dans /root
# git clone https://github.com/Yacine31/configure_oracle
$ tar xvfj configure_oracle/portable-ansible-v0.4.2-py2.tar.bz2
# ln -s ansible ansible-playbook
# python ansible-playbook configure_oracle/book-config-oel-6-7.yml -i configure_oracle/hosts.oracle