fixed quotes typo
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
tasks:
|
||||
- name: 1. Create user '{{ target_user }}'
|
||||
ansible.builtin.user:
|
||||
name: {{ target_user }}
|
||||
name: '{{ target_user }}'
|
||||
shell: /bin/bash
|
||||
groups: sudo # Add to sudo (for Debian/Ubuntu)
|
||||
state: present
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
- name: 2. Set up authorized_keys for '{{ target_user }}'
|
||||
ansible.posix.authorized_key:
|
||||
user: {{ target_user }}
|
||||
user: '{{ target_user }}'
|
||||
key: "{{ item }}"
|
||||
state: present
|
||||
path: /home/{{ target_user }}/.ssh/authorized_keys
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
- name: 3. Lock password for '{{ target_user }}'
|
||||
ansible.builtin.user:
|
||||
name: {{ target_user }}
|
||||
name: '{{ target_user }}'
|
||||
password_lock: yes
|
||||
|
||||
- name: 4.1. Disallow root login over SSH
|
||||
|
||||
Reference in New Issue
Block a user