Compare commits

..

No commits in common. "29c2b9b4dff859fa67a1e249c86d3060594a4af0" and "ec00bf3d76eb13590bef3546ac67ee1ddb2f1177" have entirely different histories.

6 changed files with 6 additions and 13 deletions

View File

@ -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.14.0 restic_version: 0.9.6
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:c8da7350dc334cd5eaf13b2c9d6e689d51e7377ba1784cc6d65977bd44ee1165 restic_checksum: sha256:a88ca09d1dd051d470965667a224a2b81930c6628a0566b7b17868be40207dc8
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,5 +25,3 @@ restic_global_exclude:
restic_repos: [] restic_repos: []
restic_jobs: [] restic_jobs: []
restic_tidy_enabled: false

View File

@ -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:-2} GITEA_KEEP_DAYS=${GITEA_KEEP_DAYS:-7}
prereq() { prereq() {
if ! systemctl list-units --full --all | grep -Fq "gitea.service"; then if ! systemctl list-units --full --all | grep -Fq "gitea.service"; then

View File

@ -62,4 +62,3 @@
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

View File

@ -1,7 +1,5 @@
--- ---
rsyslog_package_name: rsyslog_package_name: rsyslog
- rsyslog
- rsyslog-relp
rsyslog_package_state: present rsyslog_package_state: present
rsyslog_service_name: rsyslog rsyslog_service_name: rsyslog
@ -21,7 +19,6 @@ 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

View File

@ -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" ! -newerct 00:00:00 -exec nice xz -f {} \; job: find /var/log/syslog/ -mindepth 4 -type f -name "*.log" -mtime +5 -exec xz {} \;
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

View File

@ -7,9 +7,8 @@
- name: install package - name: install package
package: package:
name: "{{ item }}" name: "{{ rsyslog_package_name }}"
state: "{{ rsyslog_package_state }}" state: "{{ rsyslog_package_state }}"
loop: "{{ rsyslog_package_name }}"
- name: configure - name: configure
template: template: