diff --git a/roles/wheel/tasks/main.yml b/roles/wheel/tasks/main.yml index 7abe164..c2c9245 100644 --- a/roles/wheel/tasks/main.yml +++ b/roles/wheel/tasks/main.yml @@ -1,13 +1,25 @@ --- + +- name: create 'wheel' group + group: + name: wheel + gid: 0 + when: ansible_distribution == "OpenBSD" + - name: create 'wheel' group group: name: wheel gid: 10 + when: ansible_distribution != "OpenBSD" - name: 'alpine-specific wheel things' include_tasks: alpine.yml when: ansible_distribution == "Alpine" +- name: 'OpenBSD-specific wheel things' + include_tasks: openbsd.yml + when: ansible_distribution == "OpenBSD" + - name: setup with sudo include_tasks: sudo.yml when: ansible_distribution in ["Debian", "Ubuntu"] diff --git a/roles/wheel/tasks/openbsd.yml b/roles/wheel/tasks/openbsd.yml new file mode 100644 index 0000000..a18de31 --- /dev/null +++ b/roles/wheel/tasks/openbsd.yml @@ -0,0 +1,8 @@ +--- +- name: copy doas config + copy: + src: doas.conf + dest: /etc/doas.conf + owner: root + group: wheel + mode: '0644'