Add sway for linux.
This commit is contained in:
@@ -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"'
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- zrepl
|
||||
state: present
|
||||
|
||||
- name: Enable services
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user