personal_infra/ansible/services/vaultwarden/disable_vaultwarden_sign_ups_playbook.yml
counterweight cc1aecd098
vaultwarden: target edge group instead of vipy
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 21:56:13 +02:00

18 lines
No EOL
490 B
YAML

- name: Disable Vaultwarden Signups
hosts: edge
become: yes
vars_files:
- ../../infra_vars.yml
- ./vaultwarden_vars.yml
tasks:
- name: Disable signups in docker-compose.yml
replace:
path: "{{ vaultwarden_dir }}/docker-compose.yml"
regexp: 'SIGNUPS_ALLOWED:.*'
replace: "SIGNUPS_ALLOWED: 'false'"
- name: Re-deploy Vaultwarden with signups disabled
command: docker compose up -d
args:
chdir: "{{ vaultwarden_dir }}"