An ansible role to update all packages (multiplatform)
- Archlinux
- Debian
- FreeBSD
- NetBSD
- OpenBSD
- RedHat
- Suse
- Kali GNU/Linux
The role is available on Ansible Galaxy.
To install the role from Ansible Galaxy execute the command below.
ansible-galaxy install stafwag.package_update
If you want to use the source code directly.
Clone the role source code.
$ git clone https://github.com/stafwag/ansible-role-package_update
and put into the role search path
The following variables are set by the role.
- freebsd_running_jails: List with the running FreeBSD jails.
- package_update: "name space"
- freebsd: "freebsd config"
- get_running_jails: no | yes (default) set the freebsd_running_jails variable.
- host: no | yes (default) update the host system
- jails: Array of jails to update, freebsd_running_jails by default.
- freebsd: "freebsd config"
None
---
- name: update packages
hosts: all
become: true
roles:
- stafwag.package_update
---
- name: update packages
hosts: all
become: true
roles:
- role: stafwag.package_update
vars:
package_update:
freebsd:
get_running_jails: no
jails: []
---
- name: update packages
hosts: all
become: true
roles:
- role: stafwag.package_update
vars:
package_update:
freebsd:
host: no
---
- name: update packages
hosts: rataplan
become: true
roles:
- role: stafwag.package_update
vars:
package_update:
freebsd:
host: no
jails:
- stafmail
MIT/BSD
Created by Staf Wagemakers, email: [email protected], website: https://www.wagemakers.be, my company: https://mask27.dev