Skip to content

strgalt-t/ansible-role-bsd-autoupdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ansible Role to provide automatic updates on FreeBSD, DragonFlyBSD, and HardenedBSD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages