diff --git a/Ansible/lxc_setup_ubuntu.yml b/Ansible/lxc_setup_ubuntu.yml index 0fa0b6d..c935c81 100644 --- a/Ansible/lxc_setup_ubuntu.yml +++ b/Ansible/lxc_setup_ubuntu.yml @@ -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