Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.06 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.06 KB

Role Name

This role utilizes a shell script and cron to implement an autoupdate mechanism for pkg. Note: the idea and the code for the shell script has been taken from the Tor Project documentation.

Requirements

This role expects the pkg package manager to be installed:

pkg bootstrap -f

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

script_dir: /root/bin

Path where the pkg-upgrade script will be saved. Will be created if not existing.

cron_month: '*'
cron_weekday: '*'
cron_hour: 0
cron_minute: 0

Cron settings when the pkg-autoupdate script is executed. By default, it's daily at midnight.

Dependencies

None

Example Playbook

- hosts: servers
  become: true
  roles:
    - strgalt_t.bsd_autoupdate

License

GPLv3

Author Information

Role has been written by Jan Langrehr in August, 2023.