From 05c5787e09f584d713063aa63a24cb6e571e42dc Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Sun, 10 May 2026 10:02:40 -0700 Subject: [PATCH] remove duplicate git-annex role --- roles/git-annex/files/99-max_watches.conf | 1 - roles/git-annex/files/git-annex.service | 11 ----- roles/git-annex/handlers/main.yml | 4 -- roles/git-annex/meta/main.yml | 5 -- roles/git-annex/tasks/main.yml | 58 ----------------------- 5 files changed, 79 deletions(-) delete mode 100644 roles/git-annex/files/99-max_watches.conf delete mode 100644 roles/git-annex/files/git-annex.service delete mode 100644 roles/git-annex/handlers/main.yml delete mode 100644 roles/git-annex/meta/main.yml delete mode 100644 roles/git-annex/tasks/main.yml diff --git a/roles/git-annex/files/99-max_watches.conf b/roles/git-annex/files/99-max_watches.conf deleted file mode 100644 index 471aef8..0000000 --- a/roles/git-annex/files/99-max_watches.conf +++ /dev/null @@ -1 +0,0 @@ -fs.inotify.max_user_watches = 100000 diff --git a/roles/git-annex/files/git-annex.service b/roles/git-annex/files/git-annex.service deleted file mode 100644 index 6fecb3c..0000000 --- a/roles/git-annex/files/git-annex.service +++ /dev/null @@ -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 diff --git a/roles/git-annex/handlers/main.yml b/roles/git-annex/handlers/main.yml deleted file mode 100644 index ff631ea..0000000 --- a/roles/git-annex/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- name: restart git-annex - service: name="git-annex@{{ user.name }}.service" state=restarted - when: gitannex is defined diff --git a/roles/git-annex/meta/main.yml b/roles/git-annex/meta/main.yml deleted file mode 100644 index 371455c..0000000 --- a/roles/git-annex/meta/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -dependencies: - - { role: nmtrust } - - { role: systemd } - - { role: sysctl } diff --git a/roles/git-annex/tasks/main.yml b/roles/git-annex/tasks/main.yml deleted file mode 100644 index 033dd96..0000000 --- a/roles/git-annex/tasks/main.yml +++ /dev/null @@ -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