Added FreeBSD support
This commit is contained in:
parent
fb1bc55552
commit
6e2e7d5574
4 changed files with 16 additions and 7 deletions
|
@ -13,11 +13,12 @@ class ActionModule(ActionBase):
|
|||
|
||||
### OS support #######################################################
|
||||
os_package_names = {
|
||||
'Alpine': 'borgbackup',
|
||||
'Debian': 'borgbackup',
|
||||
'Gentoo': 'app-backup/borgbackup',
|
||||
'OpenBSD': 'borgbackup',
|
||||
'RedHat': 'borgbackup',
|
||||
'Alpine': 'borgbackup',
|
||||
'Debian': 'borgbackup',
|
||||
'FreeBSD': 'py38-borgbackup',
|
||||
'Gentoo': 'app-backup/borgbackup',
|
||||
'OpenBSD': 'borgbackup',
|
||||
'RedHat': 'borgbackup',
|
||||
}
|
||||
if task_vars['ansible_os_family'] not in os_package_names:
|
||||
error_msgs.append(f"borg role does not support {task_vars['ansible_os_family']} os family clients yet")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: restart openbsd cron
|
||||
- name: restart bsd cron
|
||||
service:
|
||||
name: cron
|
||||
state: restarted
|
||||
|
|
8
tasks/client_FreeBSD.yml
Normal file
8
tasks/client_FreeBSD.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: activate borg cron
|
||||
lineinfile:
|
||||
line: '0 23 * * * /usr/local/bin/adyxax_backup.sh'
|
||||
path: /var/cron/tabs/root
|
||||
create: yes
|
||||
notify: restart bsd cron
|
||||
...
|
|
@ -3,5 +3,5 @@
|
|||
lineinfile:
|
||||
line: '0 23 * * * /usr/local/bin/adyxax_backup.sh'
|
||||
path: /var/cron/tabs/root
|
||||
notify: restart openbsd cron
|
||||
notify: restart bsd cron
|
||||
...
|
||||
|
|
Reference in a new issue