Compare commits
5 Commits
ec00bf3d76
...
29c2b9b4df
Author | SHA1 | Date | |
---|---|---|---|
29c2b9b4df | |||
68508d8c95 | |||
006ccf93f1 | |||
58e403a0a0 | |||
be9fd29f90 |
@ -4,9 +4,9 @@ restic_service_state: started
|
|||||||
restic_service_enabled: yes
|
restic_service_enabled: yes
|
||||||
|
|
||||||
restic_arch: amd64
|
restic_arch: amd64
|
||||||
restic_version: 0.9.6
|
restic_version: 0.14.0
|
||||||
restic_url: "https://github.com/restic/restic/releases/download/v{{ restic_version }}/restic_{{ restic_version }}_linux_{{ restic_arch }}.bz2"
|
restic_url: "https://github.com/restic/restic/releases/download/v{{ restic_version }}/restic_{{ restic_version }}_linux_{{ restic_arch }}.bz2"
|
||||||
restic_checksum: sha256:a88ca09d1dd051d470965667a224a2b81930c6628a0566b7b17868be40207dc8
|
restic_checksum: sha256:c8da7350dc334cd5eaf13b2c9d6e689d51e7377ba1784cc6d65977bd44ee1165
|
||||||
restic_bin_path: /usr/local/bin
|
restic_bin_path: /usr/local/bin
|
||||||
restic_etc_path: /etc/restic
|
restic_etc_path: /etc/restic
|
||||||
restic_path: "{{ restic_bin_path }}/restic"
|
restic_path: "{{ restic_bin_path }}/restic"
|
||||||
@ -25,3 +25,5 @@ restic_global_exclude:
|
|||||||
|
|
||||||
restic_repos: []
|
restic_repos: []
|
||||||
restic_jobs: []
|
restic_jobs: []
|
||||||
|
|
||||||
|
restic_tidy_enabled: false
|
||||||
|
@ -9,7 +9,7 @@ GITEA_CONFIG=${GITEA_CONFIG:-/etc/gitea/app.ini}
|
|||||||
GITEA_WORK_PATH=${GITEA_WORK_PATH:-/var/lib/gitea}
|
GITEA_WORK_PATH=${GITEA_WORK_PATH:-/var/lib/gitea}
|
||||||
GITEA_CUSTOM_PATH=${GITEA_CUSTOM_PATH:-$GITEA_WORK_PATH/custom}
|
GITEA_CUSTOM_PATH=${GITEA_CUSTOM_PATH:-$GITEA_WORK_PATH/custom}
|
||||||
GITEA_BACKUP_PATH=${GITEA_BACKUP_PATH:-$GITEA_WORK_PATH/backup}
|
GITEA_BACKUP_PATH=${GITEA_BACKUP_PATH:-$GITEA_WORK_PATH/backup}
|
||||||
GITEA_KEEP_DAYS=${GITEA_KEEP_DAYS:-7}
|
GITEA_KEEP_DAYS=${GITEA_KEEP_DAYS:-2}
|
||||||
|
|
||||||
prereq() {
|
prereq() {
|
||||||
if ! systemctl list-units --full --all | grep -Fq "gitea.service"; then
|
if ! systemctl list-units --full --all | grep -Fq "gitea.service"; then
|
||||||
|
@ -62,3 +62,4 @@
|
|||||||
user: root
|
user: root
|
||||||
state: present
|
state: present
|
||||||
job: "( {{ restic_bin_path }}/restic-tidy {{ item.name }} | logger --id=$$ -t restic-tidy -p user.info ) 2>&1 | logger --id=$$ -t restic-tidy -p user.err"
|
job: "( {{ restic_bin_path }}/restic-tidy {{ item.name }} | logger --id=$$ -t restic-tidy -p user.info ) 2>&1 | logger --id=$$ -t restic-tidy -p user.err"
|
||||||
|
when: restic_tidy_enabled
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
rsyslog_package_name: rsyslog
|
rsyslog_package_name:
|
||||||
|
- rsyslog
|
||||||
|
- rsyslog-relp
|
||||||
rsyslog_package_state: present
|
rsyslog_package_state: present
|
||||||
|
|
||||||
rsyslog_service_name: rsyslog
|
rsyslog_service_name: rsyslog
|
||||||
@ -19,6 +21,7 @@ rsyslog_load_modules:
|
|||||||
permitnonkernelfacility: "on"
|
permitnonkernelfacility: "on"
|
||||||
- name: imtcp
|
- name: imtcp
|
||||||
- name: imudp
|
- name: imudp
|
||||||
|
- name: imrelp
|
||||||
|
|
||||||
rsyslog_work_directory: /var/spool/rsyslog
|
rsyslog_work_directory: /var/spool/rsyslog
|
||||||
rsyslog_include_config: /etc/rsyslog.d/*.conf
|
rsyslog_include_config: /etc/rsyslog.d/*.conf
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
minute: "0"
|
minute: "0"
|
||||||
hour: "1"
|
hour: "1"
|
||||||
user: root
|
user: root
|
||||||
job: find /var/log/syslog/ -mindepth 4 -type f -name "*.log" -mtime +5 -exec xz {} \;
|
job: find /var/log/syslog/ -mindepth 4 -type f -name "*.log" ! -newerct 00:00:00 -exec nice xz -f {} \;
|
||||||
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"
|
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"
|
||||||
|
|
||||||
- name: purge log cron job
|
- name: purge log cron job
|
||||||
|
@ -7,8 +7,9 @@
|
|||||||
|
|
||||||
- name: install package
|
- name: install package
|
||||||
package:
|
package:
|
||||||
name: "{{ rsyslog_package_name }}"
|
name: "{{ item }}"
|
||||||
state: "{{ rsyslog_package_state }}"
|
state: "{{ rsyslog_package_state }}"
|
||||||
|
loop: "{{ rsyslog_package_name }}"
|
||||||
|
|
||||||
- name: configure
|
- name: configure
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user