Catching up wolfpack to reenable

This commit is contained in:
2024-01-12 13:06:19 -06:00
parent 1ca0272031
commit 221ce69a80
19 changed files with 70 additions and 77 deletions

View File

@@ -3,14 +3,39 @@
- name: Packages
become: yes
package:
state: present
name:
- wolfpack
- WolfPack
- name: Config
- name: File config
become: yes
copy:
src: "{{ inventory_hostname }}"
when: "wolfpack_config is not defined"
ansible.posix.synchronize:
src: "{{ inventory_hostname }}/"
dest: /usr/local/etc/WolfPack
delete: true
- name: Git config
become: yes
when: "wolfpack_config is defined"
git:
repo: "{{ wolfpack_config }}"
dest: /usr/local/etc/WolfPack
clone: yes
update: no
- name: Hardening
become: yes
loop:
- /usr/local/etc/WolfPack
- /srv/wolfpack
file:
path: "{{ item }}"
state: directory
owner: wolfpack
group: wolfpack
mode: 0755
recurse: true
- name: Timer
become: yes
@@ -19,7 +44,3 @@
state: started
enabled: yes
daemon_reload: yes
# TODO Add sshfs and mountpoint for Darknet
# TODO Add config folders and restart daemon on change
# TODO Deprecate offload-wolfpack for Deluge move to sshfs