You've already forked cron-apt
30 lines
667 B
Markdown
30 lines
667 B
Markdown
|
|
# Cron-APT - Ansible Role
|
||
|
|
|
||
|
|
Install and configure of the cron-apt package for Debian based machines.
|
||
|
|
|
||
|
|
## Configuring
|
||
|
|
|
||
|
|
The below configuration variables are available:
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
cron_apt_mailto: monitoring@somedomain.net.nz # The email to receive notifications
|
||
|
|
cron_apt_apply_security: false # If set to true, security updates will automatically be applied
|
||
|
|
```
|
||
|
|
|
||
|
|
## Example playbook
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
---
|
||
|
|
- hosts: all
|
||
|
|
become: true
|
||
|
|
roles:
|
||
|
|
- name: cron-apt
|
||
|
|
vars:
|
||
|
|
cron_apt_mailto: admin@somedomain.net.nz
|
||
|
|
cron_apt_apply_security: true
|
||
|
|
```
|
||
|
|
You can of course configure variables instead at group_vars/host_vars level. This is just here as an example.
|
||
|
|
|
||
|
|
|
||
|
|
|