style(borgbackup): linting

This commit is contained in:
VC
2024-07-05 11:53:13 +02:00
parent 9b3649ea74
commit 2996773e1e
4 changed files with 42 additions and 35 deletions

View File

@@ -1,3 +1,5 @@
---
borg_pass: !vault |
$ANSIBLE_VAULT;1.1;AES256
62333166623737363731663766353330633335306532306366356536376232396664376430613434

View File

@@ -1,3 +1,5 @@
---
- name: create SSH key
openssh_keypair:
path: ~/.ssh/id_rsa

View File

@@ -1,3 +1,5 @@
---
- name: mount backup disk
mount:
path: /backup
@@ -10,10 +12,10 @@
user:
name: backup
comment: Backup
create_home: yes
create_home: true
home: /backup
shell: /bin/bash
system: yes
system: true
state: present
- name: "create directory for borg clients"

View File

@@ -1,3 +1,5 @@
---
- set_fact:
borgbackup: borg
when: ansible_facts['distribution'] == "Archlinux"
@@ -8,4 +10,3 @@
package:
name: "{{ borgbackup }}"
state: present
# when: ansible_facts['distribution'] == "Debian"