Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.16 KB

File metadata and controls

35 lines (26 loc) · 1.16 KB

Ansible playbook for OpenBSD

This playbook upgrades OpenBSD hosts to the next stable release, installs binary patches and updates all packages to the latest version.

Requirements

The following requirements apply for each host:

  1. Latest version of Python installed
  2. Your public SSH key is added to the authorized_keys file
  3. Configuraton file for doas(1) is present

Usage

# Ping the VMs group in your inventory
ansible VMs -m ping

# Run all tasks on all hosts
ansible-playbook playbook.yaml

# Run all tasks on a subset of hosts
ansible-playbook playbook.yaml -l vm1

# Run a set of tasks on all hosts
ansible-playbook playbook.yaml -t syspatch,syspatch_debug,syspatch_reboot

Inventory

Organize and update your inventory with your managed nodes by either IP address or FQDN. The inventory file in this repo is written in YAML which lets you declare unique names per host.

Tags

All tasks are tagged with an appropriate name for ease of use (see above usage example).
This way, you can easily run any task(s) based on your needs on any host(s).

To list all defined tags, run: ansible-playbook playbook.yaml --list-tags