From 68c5f21ecfe6805028d0a8a33190c6413a6786fd Mon Sep 17 00:00:00 2001 From: jerome Date: Tue, 11 Feb 2025 00:04:16 +0100 Subject: correction --- playbooks/lxc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'playbooks/lxc.yml') diff --git a/playbooks/lxc.yml b/playbooks/lxc.yml index 79bb5b9..4ed673d 100644 --- a/playbooks/lxc.yml +++ b/playbooks/lxc.yml @@ -41,11 +41,11 @@ - name: copie des clefs ssh copy: src: "~/.ssh/id_rsa.pub" - dest: "{{item}}" + dest: "/var/lib/lxc/{{item}}/rootfs/root/.ssh/authorized_keys" mode: "0600" with_items: - - /var/lib/lxc/debian-lxc/rootfs/root/.ssh/authorized_keys - - /var/lib/lxc/rocky-lxc/rootfs/root/.ssh/authorized_keys + - debian-lxc + - rocky-lxc - name: recuperation ip rocky shell: "lxc-info -iH rocky-lxc" -- cgit v1.2.3