bitwarden

This commit is contained in:
jaydee 2024-07-07 22:32:10 +02:00
parent 0fb906d2cf
commit 6a75b17170

View File

@ -7,21 +7,19 @@
ansible.builtin.apt: ansible.builtin.apt:
name: name:
- python3-pip - python3-pip
- python3-pip when: inventory_hostname not in groups['nas']
- python3-pip
- python3-pip
- python3-pip
- name: Upload service config - name: Upload service config
ansible.builtin.copy: ansible.builtin.copy:
src: services/mqtt_srv.service src: services/mqtt_srv.service
dest: /etc/systemd/system/ dest: /etc/systemd/system/
when: inventory_hostname not in groups['nas']
- name: Upload service script - name: Upload service script
ansible.builtin.copy: ansible.builtin.copy:
src: scripts/mqtt_srv.py src: scripts/mqtt_srv.py
dest: /usr/bin/ dest: /usr/bin/
mode: '755' mode: '755'
owner: root owner: root
when: inventory_hostname not in groups['nas']
- name: Install bottle python package - name: Install bottle python package
ansible.builtin.shell: pip install {{ item }} --break-system-packages ansible.builtin.shell: pip install {{ item }} --break-system-packages
loop: loop:
@ -30,10 +28,13 @@
- ping3 - ping3
- psutil - psutil
- autorandr - autorandr
when: inventory_hostname not in groups['nas']
- name: Just force systemd to reread configs (2.4 and above) - name: Just force systemd to reread configs (2.4 and above)
ansible.builtin.systemd: ansible.builtin.systemd:
daemon_reload: true daemon_reload: true
when: inventory_hostname not in groups['nas']
- name: Restart mqtt_srv service - name: Restart mqtt_srv service
ansible.builtin.service: ansible.builtin.service:
name: mqtt_srv.service name: mqtt_srv.service
state: restarted state: restarted
when: inventory_hostname not in groups['nas']