update chrony & readme
This commit is contained in:
@@ -2,46 +2,38 @@
|
|||||||
# ---------------------------------------------------
|
# ---------------------------------------------------
|
||||||
# configuration des packages necessaires pour Linux
|
# 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
|
- name: Installation des packages communs pour Linux
|
||||||
yum: name={{ item }} state=installed
|
yum: name={{ item }} state=installed
|
||||||
tags: linux_packages
|
tags: linux_packages
|
||||||
with_items:
|
with_items:
|
||||||
- bind-utils
|
- bind-utils
|
||||||
- xdpyinfo
|
- chrony
|
||||||
- xauth
|
|
||||||
- net-tools
|
|
||||||
- ethtool
|
- ethtool
|
||||||
- nscd
|
|
||||||
- sysstat
|
|
||||||
- tree
|
|
||||||
- unzip
|
|
||||||
- wget
|
|
||||||
- vim
|
|
||||||
- lvm2
|
- lvm2
|
||||||
- nc
|
- nc
|
||||||
- ncurses
|
- ncurses
|
||||||
|
- net-tools
|
||||||
- nfs-utils
|
- nfs-utils
|
||||||
|
- nscd
|
||||||
- readline
|
- readline
|
||||||
- xfsprogs
|
- sysstat
|
||||||
- system-storage-manager
|
- system-storage-manager
|
||||||
|
- tree
|
||||||
|
- unzip
|
||||||
|
- vim
|
||||||
|
- wget
|
||||||
|
- xauth
|
||||||
|
- xdpyinfo
|
||||||
|
- xfsprogs
|
||||||
|
|
||||||
|
# ---------------------------------------------------
|
||||||
|
# configuration Linux : Mode panic
|
||||||
|
# ---------------------------------------------------
|
||||||
- name: Configuratio du mode panic sur perte du /
|
- name: Configuratio du mode panic sur perte du /
|
||||||
shell: free_form="tune2fs -e panic `df -P / |tail -1 | awk '{print $1}'`"
|
shell: free_form="tune2fs -e panic `df -P / |tail -1 | awk '{print $1}'`"
|
||||||
|
|
||||||
- name: Configuratio du mode panic sur bug du kernel
|
- name: Configuratio du mode panic sur bug du kernel
|
||||||
sysctl: name=kernel.panic_on_oops value=1 state=present reload=yes ignoreerrors=yes
|
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
|
# configuration Linux : Selinux
|
||||||
|
|||||||
20
readme.txt
20
readme.txt
@@ -1,23 +1,11 @@
|
|||||||
ansible sur le poste à configurer
|
ansible sur le poste à configurer
|
||||||
|
|
||||||
===
|
===
|
||||||
|
yum install -y wget bzip2 unzip git
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
$ pwd = /root
|
$ pwd = /root
|
||||||
récupérer mes playbooks dans /root
|
|
||||||
# git clone https://github.com/Yacine31/configure_oracle
|
# 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
|
# python ansible-playbook configure_oracle/book-config-oel-6-7.yml -i configure_oracle/hosts.oracle
|
||||||
|
|||||||
Reference in New Issue
Block a user