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:
parent
62f28f5c51
commit
350a4ecc2c
1 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
# 🔎 Check if 1Password item exists
|
# 🔎 Check if 1Password item exists
|
||||||
- name: Check if 1Password item exists
|
- name: Check if 1Password item exists
|
||||||
shell: |
|
shell: |
|
||||||
op item get "{{ stack_name }}" --vault="Automation"
|
op item get "{{ stack_name }}" --vault="semaphore-ansible"
|
||||||
register: op_check
|
register: op_check
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
- name: Load secrets from 1Password
|
- name: Load secrets from 1Password
|
||||||
when: op_check.rc == 0
|
when: op_check.rc == 0
|
||||||
shell: |
|
shell: |
|
||||||
op item get "{{ stack_name }}" --vault="Automation" --format json
|
op item get "{{ stack_name }}" --vault="semaphore-ansible" --format json
|
||||||
register: op_item
|
register: op_item
|
||||||
check_mode: no
|
check_mode: no
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
op item create \
|
op item create \
|
||||||
--category="Server" \
|
--category="Server" \
|
||||||
--title="{{ stack_name }}" \
|
--title="{{ stack_name }}" \
|
||||||
--vault="Automation" \
|
--vault="semaphore-ansible" \
|
||||||
"url=https://{{ n8n_url }}" \
|
"url=https://{{ n8n_url }}" \
|
||||||
"username={{ n8n_editor_email }}" \
|
"username={{ n8n_editor_email }}" \
|
||||||
"password={{ n8n_editor_password }}" \
|
"password={{ n8n_editor_password }}" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue