From 10fddc7d446db4fbb46d863a863b495df379bf8a Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Sun, 24 Aug 2025 13:00:32 +0200 Subject: [PATCH] fixed quotes typo --- Ansible/lxc_setup_ubuntu.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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