Target semaphore-ansible vault for op item get/create

The Semaphore service account only has access to the semaphore-ansible
vault. Automation was inaccessible so every op call failed.
This commit is contained in:
lorentz 2026-04-21 02:08:38 +00:00
parent 62f28f5c51
commit 350a4ecc2c

View file

@ -20,7 +20,7 @@
# 🔎 Check if 1Password item exists
- name: Check if 1Password item exists
shell: |
op item get "{{ stack_name }}" --vault="Automation"
op item get "{{ stack_name }}" --vault="semaphore-ansible"
register: op_check
failed_when: false
changed_when: false
@ -36,7 +36,7 @@
- name: Load secrets from 1Password
when: op_check.rc == 0
shell: |
op item get "{{ stack_name }}" --vault="Automation" --format json
op item get "{{ stack_name }}" --vault="semaphore-ansible" --format json
register: op_item
check_mode: no
delegate_to: localhost
@ -77,7 +77,7 @@
op item create \
--category="Server" \
--title="{{ stack_name }}" \
--vault="Automation" \
--vault="semaphore-ansible" \
"url=https://{{ n8n_url }}" \
"username={{ n8n_editor_email }}" \
"password={{ n8n_editor_password }}" \