From 50569dca4de81a10e22940fa1c153fe9c1a03d50 2023-08-24 01:28:12 From: x Date: 2023-08-24 01:28:12 Subject: [PATCH] fix: block content in copy should not be quoted, initial_setup --- diff --git a/initial_server_setup/initial_setup.yml b/initial_server_setup/initial_setup.yml index fd22a4a0ca764e4198fb38abcd6272cc386d7fbf..c5b9c2c9a6cf2e9c477e89b878d928e5afb7c33a 100644 --- a/initial_server_setup/initial_setup.yml +++ b/initial_server_setup/initial_setup.yml @@ -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: