Cleanup playbooks

This commit is contained in:
Tobias Reisinger 2026-11-08 20:24:38 +01:00
commit 0881ee91a7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 18 additions and 25 deletions

View file

@ -0,0 +1,6 @@
- name: Prepare opentofu
hosts: localhost
gather_facts: false
tasks:
- name: Import tasks to prepare opentofu
ansible.builtin.import_tasks: tasks/prepare-opentofu.yml

View file

@ -1,17 +1,10 @@
---
- name: Prepare
- name: Prepare opentofu
hosts: localhost
gather_facts: false
tasks:
- name: Run opentofu init
ansible.builtin.command:
cmd: tofu init
chdir: "{{ playbook_dir }}/.."
check_mode: false
tags: always
- name: Refresh inventory with opentofu available
ansible.builtin.meta: refresh_inventory
tags: always
- name: Import tasks to prepare opentofu
ansible.builtin.import_tasks: tasks/prepare-opentofu.yml
- name: Run all roles
hosts: serguzim_net

View file

@ -0,0 +1,9 @@
- name: Run opentofu init
ansible.builtin.command:
cmd: tofu init
chdir: "{{ playbook_dir }}/.."
check_mode: false
tags: always
- name: Refresh inventory with opentofu available
ansible.builtin.meta: refresh_inventory
tags: always

View file

@ -1,15 +0,0 @@
---
- name: Unlock backups
hosts: serguzim_net
become: true
tasks:
- name: Verify backup
ansible.builtin.command:
cmd: autorestic -v check
chdir: "{{ (services_path, 'backup') | path_join }}"
changed_when: false
become: true
register: cmd_result_verify
until: "cmd_result_verify is not failed"
retries: 10
delay: 10