summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-02-11 00:04:16 +0100
committerjerome <jerome@xlinfo.fr>2025-02-11 00:04:16 +0100
commit68c5f21ecfe6805028d0a8a33190c6413a6786fd (patch)
treef3a45aa7db1c573412719dbef63abe0138e879d0 /playbooks
parent2eb4431e398389d894eac81b51a1cc69af1d1c6f (diff)
downloadterraform-ansible-68c5f21ecfe6805028d0a8a33190c6413a6786fd.tar.gz
terraform-ansible-68c5f21ecfe6805028d0a8a33190c6413a6786fd.zip
correction
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/lxc.yml6
1 files changed, 3 insertions, 3 deletions
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"