From f2e17b92c6cf0b1c9ee116b8399614a8487ef0a3 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Sun, 20 Jun 2021 21:40:32 +0200 Subject: [PATCH] update chrony & readme --- .../tasks/os_configuration.yml | 36 ++++++++----------- readme.txt | 20 +++-------- 2 files changed, 18 insertions(+), 38 deletions(-) diff --git a/configure-host-oel7/tasks/os_configuration.yml b/configure-host-oel7/tasks/os_configuration.yml index 0449f26..fdd29cd 100755 --- a/configure-host-oel7/tasks/os_configuration.yml +++ b/configure-host-oel7/tasks/os_configuration.yml @@ -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 diff --git a/readme.txt b/readme.txt index dfc81c4..b3cbc42 100644 --- a/readme.txt +++ b/readme.txt @@ -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