Add node001

This commit is contained in:
Tobias Reisinger 2024-10-14 03:30:59 +02:00
parent e68f2f2cec
commit 822ec5fcb7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 69 additions and 16 deletions

View file

@ -10,7 +10,14 @@
apply:
tags: software
tags: software
when: "inventory_hostname == 'node003'"
when: "inventory_hostname != 'node002'"
- name: Run always role
ansible.builtin.include_role:
name: always
apply:
tags: always
tags: always
- name: Include service roles
ansible.builtin.include_role:

View file

@ -0,0 +1,9 @@
---
- name: Unlock backups
hosts: serguzim_net
become: true
tasks:
- name: Change password
ansible.builtin.shell:
cmd: autorestic unlock --force && autorestic exec -va unlock
chdir: "{{ (services_path, 'backup') | path_join }}"