Install the doas config on Linux.

This commit is contained in:
Tom Alexander 2023-05-26 19:17:34 -04:00
parent 8b7b39f356
commit 64b1e95e8e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 14 additions and 31 deletions

View File

@ -27,7 +27,8 @@
src: "/usr/share/zoneinfo/{{ timezone|default('UTC') }}"
dest: /etc/localtime
owner: root
group: root
# TODO: Arch Linux is changing the group to root instead of wheel. Maybe make this a variable?
group: wheel
state: link
- name: Install scripts

View File

@ -2,7 +2,7 @@
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
mode: 0400
owner: root
group: wheel
validate: "doas -C %s"

View File

@ -1,29 +1,11 @@
# - name: Build aur packages
# register: buildaur
# become_user: "{{ build_user.name }}"
# command: "aurutils-sync --no-view {{ item }}"
# args:
# creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
# loop:
# - foo
# - name: Update cache
# when: buildaur.changed
# pacman:
# name: []
# state: present
# update_cache: true
# - name: Install packages
# package:
# name:
# - foo
# state: present
# - name: Enable services
# systemd:
# enabled: yes
# name: "{{ item }}"
# daemon_reload: yes
# loop:
# - foo.service
- name: Install Configuration
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0400
owner: root
group: wheel
validate: "doas -C %s"
loop:
- src: doas.conf
dest: /etc/doas.conf