fix some syntax errs

This commit is contained in:
Arya 2024-01-06 22:42:02 +05:30
parent 630724be56
commit 6498b89732
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -3,13 +3,13 @@
vars: vars:
users: users:
- name: arya - name: arya
password: {{arya_encrypted_pass}} password: "{{arya_encrypted_pass}}"
- name: devrand - name: devrand
password: {{devrand_encrypted_pass}} password: "{{devrand_encrypted_pass}}"
- name: midou - name: midou
password: {{midou_encrypted_pass}} password: "{{midou_encrypted_pass}}"
- name: ansiblerunner - name: ansiblerunner
password: {{ansiblerunner_encrypted_pass}} password: "{{ansiblerunner_encrypted_pass}}"
tasks: tasks:
- name: Enable backports - name: Enable backports
ansible.builtin.apt_repository: ansible.builtin.apt_repository:
@ -200,11 +200,11 @@
- role: borgbase.ansible_role_borgbackup - role: borgbase.ansible_role_borgbackup
borg_repository: borg_repository:
- ssh://zh3117@zh3117.rsync.net/data1/home/zh3117/backups/{{rsyncnet_slug}} - ssh://zh3117@zh3117.rsync.net/data1/home/zh3117/backups/{{rsyncnet_slug}}
borg_source_directories: {{bkp_source_directories}} borg_source_directories: "{{bkp_source_directories}}"
borg_exclude_patterns: {{bkp_exclude_patterns}} borg_exclude_patterns: "{{bkp_exclude_patterns}}"
borg_remote_path: /usr/local/bin/borg_1.2.4/borg1 borg_remote_path: /usr/local/bin/borg_1.2.4/borg1
borgmatic_hooks: borgmatic_hooks:
postgresql_databases: {{bkp_postgresql_databases}} postgresql_databases: "{{bkp_postgresql_databases}}"
healthchecks: healthchecks:
ping_url: https://healthchecks.projectsegfau.lt/ping/{{bkp_hc_uuid}} ping_url: https://healthchecks.projectsegfau.lt/ping/{{bkp_hc_uuid}}
states: states:
@ -213,7 +213,8 @@
keep_daily: 7 keep_daily: 7
keep_weekly: 4 keep_weekly: 4
keep_monthly: 3 keep_monthly: 3
borg_encryption_passcommand: cat /etc/borgmatic/passphrase # very secure I know; it has to be plain text anyway for automated backups, unless there is a better way (in which case please email me@aryak.me) # very secure I know; it has to be plain text anyway for automated backups, unless there is a better way (in which case please email me@aryak.me)
borg_encryption_passcommand: "cat /etc/borgmatic/passphrase"
- name: UFW Firewall Configuration - name: UFW Firewall Configuration
hosts: eu,us # IN is behind router so no f/w is needed hosts: eu,us # IN is behind router so no f/w is needed
tasks: tasks:
@ -234,7 +235,7 @@
- name: Deny rules - name: Deny rules
community.general.ufw: community.general.ufw:
rule: allow rule: allow
port: {{item.port}} port: "{{ item.port }}"
proto: {{item.proto}} proto: "{{ item.proto }}"
with_items: with_items:
- "{{ ufw_deny_rules }}" - "{{ ufw_deny_rules }}"