init commit

This commit is contained in:
b0xxer
2024-02-09 05:23:29 -06:00
parent 789805f7a3
commit a7154389fc
33 changed files with 572 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
---
# tasks file for config
#
#
- import_tasks: parsec-bug.yml
- name: Enable Cockpit Service
become: yes
become_method: sudo
ansible.builtin.systemd_service:
name: cockpit.socket
state: started
enabled: yes
- name: Enable cockpit in firewalld
become: yes
become_method: sudo
ansible.posix.firewalld:
service: cockpit
permanent: yes
state: enabled
- name: Enable Avahi Service
become: yes
become_method: sudo
ansible.builtin.systemd_service:
name: avahi-daemon
state: started
enabled: yes
- name: Enable mdns in Firewall
become: yes
become_method: sudo
ansible.posix.firewalld:
service: mdns
permanent: yes
state: enabled
- name: Modify nsswitch file for mdns lookups
become: yes
become_method: sudo
ansible.builtin.lineinfile:
path: /etc/nsswitch.conf
regexp: '^hosts:'
line: 'hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname'
- name: Set hostname to bitb0x
become: yes
become_method: sudo
ansible.builtin.hostname:
name: bitb0x
- name: Refresh gpg keys
shell: gpg --keyserver hkps://keys.openpgp.org --refresh-keys
- name: Enable Avahi Service
become: yes
become_method: sudo
ansible.builtin.systemd_service:
name: avahi-daemon
state: restarted
+4
View File
@@ -0,0 +1,4 @@
# 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