Changeset - 6c0efc1477df
[Not reviewed]
0 1 0
x - 20 months ago 2023-08-29 18:28:04
xbr@c3l.lu
style: initial_server, add tags where missing
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
initial_server_setup/initial_setup.yml
Show inline comments
 
@@ -57,6 +57,7 @@
 
        content: |
 
          # {{ ansible_managed }}
 
          PasswordAuthentication no
 
      tags: network,ssh
 
      register: pass_auth
 
    - name: Remove SSH Password Auth from sshd_config
 
      ansible.builtin.lineinfile:
 
@@ -73,6 +74,7 @@
 
        content: |
 
          # {{ ansible_managed }}
 
          PermitEmptyPasswords no
 
      tags: network,ssh
 
      register: empty_pass
 
    - name: Remove SSH Empty Password from sshd_config
 
      ansible.builtin.lineinfile:
 
@@ -89,6 +91,7 @@
 
        content: |
 
          # {{ ansible_managed }}
 
          PermitRootLogin no
 
      tags: network,ssh
 
      register: root_login
 
    - name: Remove SSH Root Login from sshd_config
 
      ansible.builtin.lineinfile:
 
@@ -141,6 +144,7 @@
 
              PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 
          fi
 
          unset color_prompt force_color_prompt
 
      tags: users
 

	
 
    - name: Add SSH key for users from vars
 
      ansible.posix.authorized_key:
 
@@ -156,6 +160,7 @@
 
        group: sudo
 
        commands: ALL
 
        nopassword: true
 
      tags: users
 

	
 
    - name: Reload SSHD
 
      ansible.builtin.service:
0 comments (0 inline, 0 general)