This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch update-x86-workers
in repository https://gitbox.apache.org/repos/asf/couchdb-infra-cm.git

commit dd9475838fade3616b5a55deccef9ce3d4d2baf2
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Tue Dec 3 03:19:25 2024 -0500

    Update common
    
     * Completely remove root login access
     * Install ripgrep
---
 roles/common/tasks/main.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index a909c61..c9f78d2 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -17,6 +17,15 @@
     name: root
     password_lock: true
 
+- name: Disable root login vis ssh
+  become: yes
+  lineinfile:
+    dest: /etc/ssh/sshd_config
+    regexp: '^(#\s*)?#PermitRootLogin'
+    line: "PermitRootLogin no"
+    state: present
+  notify: restart sshd
+
 - name: Disable password authentication
   become: yes
   lineinfile:
@@ -74,3 +83,4 @@
       - vim
       - emacs-nox
       - wget
+      - ripgrep

Reply via email to