mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
bitwarden
This commit is contained in:
parent
73abfaa6f1
commit
34278b2748
1167
playbooks/files/scripts/mqtt_srv.py
Normal file
1167
playbooks/files/scripts/mqtt_srv.py
Normal file
File diff suppressed because it is too large
Load Diff
15
playbooks/files/services/mqtt_srv.service
Normal file
15
playbooks/files/services/mqtt_srv.service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=ROT13 demo service
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
Environment=XAUTHORITY=/home/jd/.Xauthority
|
||||||
|
Environment=DISPLAY=:0
|
||||||
|
#ExecStartPre=/bin/sleep 30
|
||||||
|
ExecStart=/usr/bin/mqtt_srv
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
|
13
playbooks/install_mqtt_srv.yml
Normal file
13
playbooks/install_mqtt_srv.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
- hosts: datacenter
|
||||||
|
name: Install mqtt_srv
|
||||||
|
ignore_unreachable: false
|
||||||
|
tasks:
|
||||||
|
- name: Upload service config
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: services/mqtt_srv.service
|
||||||
|
dest: /etc/systemd/system/
|
||||||
|
|
||||||
|
- name: Upload service script
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: scripts/mqtt_srv.py
|
||||||
|
dest: /usr/bin/
|
Loading…
x
Reference in New Issue
Block a user