Ignore LXC containers
This commit is contained in:
@@ -16,10 +16,11 @@
|
|||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
group: "{{ ansible_user }}"
|
group: "{{ ansible_user }}"
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
|
when: not (is_lxc | default(false) | bool) # Skips if it's an LXC
|
||||||
- name: Deploy public SSH key
|
- name: Deploy public SSH key
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
user: "{{ ansible_user }}"
|
user: "{{ ansible_user }}"
|
||||||
state: present
|
state: present
|
||||||
# Use lookup to read the local key file on the Semaphore server
|
# Use lookup to read the local key file on the Semaphore server
|
||||||
key: "{{ lookup('file', public_key_path) }}"
|
key: "{{ lookup('file', public_key_path) }}"
|
||||||
|
when: not (is_lxc | default(false) | bool) # Skips if it's an LXC
|
||||||
Reference in New Issue
Block a user