added handlers for rebuilding bitcoin container and handling avahi

restarts
This commit is contained in:
b0xxer
2024-02-10 08:49:44 -06:00
parent f21d5b4f9d
commit 7b8284d709
5 changed files with 31 additions and 28 deletions
+8 -1
View File
@@ -1,2 +1,9 @@
---
--
# handlers file for config
#
- name: restart_avahi
become: yes
become_method: sudo
ansible.builtin.systemd_service:
name: avahi-daemon
state: restarted
+2 -7
View File
@@ -43,23 +43,18 @@
path: /etc/nsswitch.conf
regexp: '^hosts:'
line: 'hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname'
notify: restart_avahi
- name: Set hostname to bitb0x
become: yes
become_method: sudo
ansible.builtin.hostname:
name: bitb0x
notify: restart_avahi
- 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
- name: Enable Zerotier
become: yes
become_method: sudo