wheel for openbsd

main
Ricard Illa 2022-09-04 17:53:27 +02:00
parent a999c6949c
commit b27373bfa7
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 20 additions and 0 deletions

View File

@ -1,13 +1,25 @@
--- ---
- name: create 'wheel' group
group:
name: wheel
gid: 0
when: ansible_distribution == "OpenBSD"
- name: create 'wheel' group - name: create 'wheel' group
group: group:
name: wheel name: wheel
gid: 10 gid: 10
when: ansible_distribution != "OpenBSD"
- name: 'alpine-specific wheel things' - name: 'alpine-specific wheel things'
include_tasks: alpine.yml include_tasks: alpine.yml
when: ansible_distribution == "Alpine" when: ansible_distribution == "Alpine"
- name: 'OpenBSD-specific wheel things'
include_tasks: openbsd.yml
when: ansible_distribution == "OpenBSD"
- name: setup with sudo - name: setup with sudo
include_tasks: sudo.yml include_tasks: sudo.yml
when: ansible_distribution in ["Debian", "Ubuntu"] when: ansible_distribution in ["Debian", "Ubuntu"]

View File

@ -0,0 +1,8 @@
---
- name: copy doas config
copy:
src: doas.conf
dest: /etc/doas.conf
owner: root
group: wheel
mode: '0644'