Changeset - 50569dca4de8
[Not reviewed]
0 1 0
x - 21 months ago 2023-08-24 01:28:12
xbr@c3l.lu
fix: block content in copy should not be quoted, initial_setup
1 file changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
initial_server_setup/initial_setup.yml
Show inline comments
 
@@ -55,8 +55,8 @@
 
        owner: root
 
        mode: u=rw,g=r,o=r
 
        content: |
 
          '# {{ ansible_managed }}'
 
          'PasswordAuthentication no'
 
          # {{ ansible_managed }}
 
          PasswordAuthentication no
 
      tags: network,ssh
 
    - name: Disable SSH Empty Password
 
      ansible.builtin.copy:
 
@@ -64,8 +64,8 @@
 
        owner: root
 
        mode: u=rw,g=r,o=r
 
        content: |
 
          '# {{ ansible_managed }}'
 
          'PermitEmptyPasswords no'
 
          # {{ ansible_managed }}
 
          PermitEmptyPasswords no
 
      tags: network,ssh
 
    - name: Disable SSH Root Login
 
      ansible.builtin.copy:
 
@@ -73,8 +73,8 @@
 
        owner: root
 
        mode: u=rw,g=r,o=r
 
        content: |
 
          '# {{ ansible_managed }}'
 
          'PermitRootLogin no'
 
          # {{ ansible_managed }}
 
          PermitRootLogin no
 
      tags: network,ssh
 
    - name: Reload SSHD
 
      ansible.builtin.service:
0 comments (0 inline, 0 general)