refactor: split machine deploys from one-time secrets migration
ansible-core-net / deploy (push) Failing after 39s
ansible-core-secrets / deploy (push) Successful in 30s
ansible-rus-central / deploy (push) Failing after 15s

Roles stay under the machine that runs them, CI applies only a known product, and the /opt/secrets move is a one-shot playbook instead of part of every core-secrets run.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
karpenokandCursor committed 2026-11-10 23:55:34 +07:00
1 parent 341538fba9
commit 9c692522fb
85 files changed
+537 -492

No files matched your search

@@ -0,0 +1,24 @@
---
- name: Создать каталоги Vaultwarden
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: root
group: root
mode: "0755"
loop:
- "{{ vaultwarden_dir }}"
- "{{ vaultwarden_data_dir }}"
- name: Установить compose.yaml для Vaultwarden
ansible.builtin.template:
src: compose.yaml.j2
dest: "{{ vaultwarden_dir }}/compose.yaml"
owner: root
group: root
mode: "0644"
- name: Запустить Vaultwarden
ansible.builtin.command: docker compose -f {{ vaultwarden_dir }}/compose.yaml up -d --remove-orphans
register: compose_up
changed_when: "'Started' in compose_up.stderr or 'Created' in compose_up.stderr or 'Recreated' in compose_up.stderr or 'Pulled' in compose_up.stderr"