remove duplicate git-annex role

This commit is contained in:
Pig Monkey 2026-05-10 10:02:40 -07:00
parent 3a6de7d084
commit 05c5787e09
5 changed files with 0 additions and 79 deletions

View file

@ -1 +0,0 @@
fs.inotify.max_user_watches = 100000

View file

@ -1,11 +0,0 @@
[Unit]
Description=Git Annex Assistant Service
[Service]
Type=simple
ExecStart=/usr/bin/git-annex assistant --foreground --autostart
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target

View file

@ -1,4 +0,0 @@
---
- name: restart git-annex
service: name="git-annex@{{ user.name }}.service" state=restarted
when: gitannex is defined

View file

@ -1,5 +0,0 @@
---
dependencies:
- { role: nmtrust }
- { role: systemd }
- { role: sysctl }

View file

@ -1,58 +0,0 @@
---
- name: Install git-annex
pacman:
name: git-annex
state: present
- name: Install git-annex-remote-rclone
kewlfft.aur.aur:
name: git-annex-remote-rclone
become: yes
become_user: "{{ aur.user }}"
tags:
- aur
- name: Push git-annex assistant service file
copy:
src: git-annex.service
dest: /etc/systemd/user/git-annex.service
notify:
- reload systemd config
- name: Check if git-annex autostart file exists
stat:
path: /home/{{ user.name }}/.config/git-annex/autostart
register: autostart
- name: Enable and start git-annex assistant service
systemd:
name: git-annex.service
scope: user
enabled: yes
state: started
become: yes
become_user: "{{ user.name }}"
environment:
XDG_RUNTIME_DIR: "/run/user/{{ user.uid }}"
when: autostart.stat is defined and autostart.stat.exists
- name: Add git-annex to trusted unit list
lineinfile:
dest: /etc/nmtrust/trusted_units
state: present
line: "git-annex.service,user:{{ user.name }},allow_offline"
when: gitannex.stop_on_untrusted is defined and gitannex.stop_on_untrusted == True
- name: Remove git-annex from trusted unit list
lineinfile:
dest: /etc/nmtrust/trusted_units
state: absent
line: "git-annex.service,user:{{ user.name }},allow_offline"
when: gitannex.stop_on_untrusted is not defined or gitannex.stop_on_untrusted != True
- name: Increase the amount of inotify watchers
copy:
src: 99-max_watches.conf
dest: /etc/sysctl.d/99-max_watches.conf
notify:
- reload sysctl