ansible/roles/base/tasks/OpenBSD.yml

43 lines
895 B
YAML

---
- name: configure mirror for packages and updates
copy:
dest: /etc/installurl
content: "https://mirrors.foo.sh/openbsd\n"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
when: ansible_datacenter == "home"
- name: install packages
package:
name: "{{ item }}"
state: installed
with_items:
- iftop # monitor interfaces
- vim--no_x11 # we need real vim
- name: disable nightly cron noise
file:
name: "{{ item }}"
content: "VERBOSESTATUS=0\n"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
with_items:
- /etc/daily.local
- /etc/weekly.local
- /etc/monthly.local
- name: disable unused services
service:
name: sndiod
enabled: false
state: stopped
- name: install os specific roles
include_role:
name: "{{ role }}"
with_items:
- pf
loop_control:
loop_var: role