From 173596d20df45cbf15d77d485673df453148c2ae Mon Sep 17 00:00:00 2001 From: "Ben D." Date: Fri, 24 Apr 2026 15:27:09 -0700 Subject: [PATCH] Ignore LXC containers --- playbooks/deploy_sshkeys.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/deploy_sshkeys.yml b/playbooks/deploy_sshkeys.yml index 79e289d..56863a4 100644 --- a/playbooks/deploy_sshkeys.yml +++ b/playbooks/deploy_sshkeys.yml @@ -16,10 +16,11 @@ owner: "{{ ansible_user }}" group: "{{ ansible_user }}" mode: '0700' - + when: not (is_lxc | default(false) | bool) # Skips if it's an LXC - name: Deploy public SSH key ansible.posix.authorized_key: user: "{{ ansible_user }}" state: present # Use lookup to read the local key file on the Semaphore server key: "{{ lookup('file', public_key_path) }}" + when: not (is_lxc | default(false) | bool) # Skips if it's an LXC \ No newline at end of file