Changeset - 4f3475af7798
[Not reviewed]
0 1 0
x - 20 months ago 2023-08-24 01:48:11
xbr@c3l.lu
fix: only reload sshd if everything went well
1 file changed with 7 insertions and 6 deletions:
0 comments (0 inline, 0 general)
initial_server_setup/initial_setup.yml
Show inline comments
 
@@ -88,11 +88,6 @@
 
        regex: "^PermitRootLogin"
 
        line: "# PermitRootLogin No"
 
      tags: network,ssh
 
    - name: Reload SSHD
 
      ansible.builtin.service:
 
        name: "sshd"
 
        state: "reloaded"
 
      tags: network,ssh
 

	
 
    # Create Freifunk Users
 
    - name: Create member users
 
@@ -131,4 +126,10 @@
 
        name: passwordless-sudo
 
        group: sudo
 
        commands: ALL
 
        nopassword: true
 
\ No newline at end of file
 
        nopassword: true
 

	
 
    - name: Reload SSHD
 
      ansible.builtin.service:
 
        name: "sshd"
 
        state: "reloaded"
 
      tags: network,ssh
 
\ No newline at end of file
0 comments (0 inline, 0 general)