Chages in playbook to connect as a root user.

This commit is contained in:
2025-08-24 14:52:14 +02:00
parent ea638d4b6b
commit cb734c9b18
2 changed files with 1 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
---
- name: Secure and Configure a New LXC Container
hosts: 'lxc' # Hosts or group defined in your inventory
become: yes # Run all tasks as root (sudo)
remote_user: root
tasks:
- name: 1. Create user '{{ target_user }}'
ansible.builtin.user: