Add node001
This commit is contained in:
parent
e68f2f2cec
commit
822ec5fcb7
7 changed files with 69 additions and 16 deletions
playbooks
|
@ -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:
|
||||
|
|
9
playbooks/unlock-backup.yml
Normal file
9
playbooks/unlock-backup.yml
Normal 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 }}"
|
Loading…
Add table
Add a link
Reference in a new issue