From ac6f1eb3e37daa58b584f082ceff746c76e01d8c Mon Sep 17 00:00:00 2001 From: "bruno.debastiani" Date: Wed, 24 Nov 2021 09:51:33 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'ct-ansible/playboo?= =?UTF-8?q?k.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ct-ansible/playbook.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/ct-ansible/playbook.yml b/ct-ansible/playbook.yml index 375ccf1..67f0649 100644 --- a/ct-ansible/playbook.yml +++ b/ct-ansible/playbook.yml @@ -4,15 +4,14 @@ become_user: root tasks: - - name: création de sioadm + - name: creation de sioadm user: - name:sioadm - state:present - generate_ssh_key:yes - groups:sudo - append:yes - password:"{{ 'sioadm' | password_hash('sha512') }}" - password_lock:yes + name: sioadm + state: present + groups: sudo + append: yes + password: "{{ 'sioadm' | password_hash('sha512') }}" + password_lock: yes - name: desinstaller le paquet wpasupplicant apt: @@ -21,19 +20,17 @@ - name: desinstaller le paquet rpcbind apt: - name: rpcbind + name: rpcbind state: absent - name: ecriture fichier resolv.conf - template: - src: erlov.conf + template: + src: resolv.conf dest: "/etc/resolv.conf" - name: configuration sshd_config - replace: + replace: dest: /etc/ssh/sshd_config regexp: '^PermitRootLogin (yes|without-password)' regexp: '^PermitRootLogin (yes|without-password|prohibit-password)' - replace: "PermitRootLogin no" - notify: reload sshd - when: evolinux_root_disable_ssh + replace: "PermitRootLogin no" \ No newline at end of file