Forgot to install Cron

This commit is contained in:
Manu 2023-03-18 18:52:35 +00:00
parent a39e889ba8
commit a31a63df39
9 changed files with 16 additions and 18 deletions

View File

@ -1,12 +1,12 @@
---
# In this Play an ssh key pair is created for login to the backup server and secure data transfer.
# We do not want the possibly existing key to be used/distributed,
# We do not want the possibly existing key to be used/distributed,
# so a backup-specific (backup/backup.pub) one is created.
- name: Create ssh-key (if neeeded) for {{ borgbackup_user }}
- name: Create ssh-key (if neeeded) for {{ borgbackup_user }}
tags:
- install_backup
block:
- name: Ensire directory exist
- name: Ensure directory exist
ansible.builtin.file:
path: "{{ backup_user_info.home }}/.ssh/"
state: directory
@ -21,7 +21,7 @@
type: "{{ borg_ssh_key_type }}"
owner: "{{ borgbackup_user }}"
group: "{{ borgbackup_group }}"
- name: Set key permission
ansible.builtin.file:
path: "{{ backup_user_info.home }}/.ssh/backup.pub"

View File

@ -1,4 +1,9 @@
---
- name: Ensure Cron is installed
ansible.builtin.package:
name: "{{ borg_cron_package }}"
state: present
- name: Add cron-job for borgmatic
when:
- borgmatic_timer is defined and borgmatic_timer == "cron"

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh
borg_cron_package:
- cronie
borg_cron_package: cronie
borg_pip_packages:
- gcc

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh-client
borg_cron_package:
- cron
borg_cron_package: cron
borg_pip_packages:
- libssl-dev

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh-clients
borg_cron_package:
- cronie
borg_cron_package: cronie
borg_pip_packages:
- libacl-devel

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh
borg_cron_package:
- cronie
borg_cron_package: cronie
borg_pip_packages: # untested
- libssl-dev

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh-clients
borg_cron_package:
- cronie
borg_cron_package: cronie
borg_pip_packages:
- libacl-devel

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh-clients
borg_cron_package:
- cronie
borg_cron_package: cronie
borg_pip_packages:
- libacl-devel

View File

@ -2,8 +2,7 @@
borg_dep_packages:
- openssh-clients
borg_cron_package:
- cronie
borg_cron_package: cronie
borg_pip_packages:
- libacl-devel