Add sway for linux.

This commit is contained in:
Tom Alexander
2023-02-01 23:14:20 -05:00
parent 8bd1c8f79e
commit a808f81e27
12 changed files with 96 additions and 35 deletions

View File

@@ -1,2 +1,3 @@
dependencies:
- users
- build

View File

@@ -1,9 +1,3 @@
- name: Install packages
package:
name:
- zrepl
state: present
- name: Create directories
file:
name: "{{ item }}"
@@ -14,6 +8,12 @@
loop:
- /usr/local/etc/zrepl
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'
- import_tasks: tasks/linux.yaml
when: 'os_flavor == "linux"'
- name: Configure zrepl
template:
src: templates/zrepl.yml.j2
@@ -23,9 +23,3 @@
group: wheel
validate: "zrepl configcheck --config %s"
notify: "restart zrepl"
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'
- import_tasks: tasks/linux.yaml
when: 'os_flavor == "linux"'

View File

@@ -1,3 +1,9 @@
- name: Install packages
package:
name:
- zrepl
state: present
- name: Enable services
copy:
src: "files/{{ item.src }}"

View File

@@ -1,3 +1,25 @@
- 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:
- zrepl
- name: Update cache
when: buildaur.changed
pacman:
name: []
state: present
update_cache: true
- name: Install packages
package:
name:
- zrepl
state: present
- name: Enable services
systemd:
enabled: yes