Fix parsec bug in f39

This commit is contained in:
b0xxer 2024-02-11 08:55:01 -06:00
parent 3ff69e504e
commit 79386b54ab
4 changed files with 18 additions and 7 deletions

2
hosts
View File

@ -6,7 +6,7 @@
# Each Server should have a "vars" block like below to set individual settings for each
#
[bitb0x:vars]
app_list=['bitcoin.yml','electrs.yml']
app_list=['bitcoin.yml']
ansible_user=b0xxy
ansible_password=b0xxy
#registry_url=git.boxxy.net/b0xxer/

View File

@ -0,0 +1 @@
u parsec 983 "parsec user" /var/lib/parsec /sbin/nologin

View File

@ -2,13 +2,27 @@
# tasks file for config
#
#
- import_tasks: parsec-bug.yml
- name: Create /etc/sysusers.d directory
become: yes
become_method: sudo
ansible.builtin.file:
dest: /etc/sysusers.d
state: directory
- name: Fix parsec bug in Fedora-39
become: yes
become_method: sudo
ansible.builtin.copy:
src: parsec.conf
dest: /etc/sysusers.d/parsec.conf
setype: etc_t
- name: Enable Cockpit Service
become: yes
become_method: sudo
ansible.builtin.systemd_service:
name: cockpit.socket
name: cockpit.socket
state: started
enabled: yes

View File

@ -1,4 +0,0 @@
# get user id: ls -ln /var/lib | grep parsec | grep -v dbus | awk '{print $3}'
# sudo mkdir /etc/sysusers.d
# echo "u parsec 983 \"parsec user\" /var/lib/parsec /sbin/nologin" | sudo tee /etc/sysusers.d/parsec.conf
# sudo chown -R parsec:parsec /var/lib/parsec