Automated changes from linter ;P

This commit is contained in:
Mark Janssen 2024-07-11 20:47:52 +02:00
parent 44b73a216f
commit f7f04e7a41
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
65 changed files with 392 additions and 324 deletions

View file

@ -1,24 +1,25 @@
---
- name: Install dependencies
apt:
ansible.builtin.apt:
name:
- php-cli
- php-snmp
- make
- name: Install mqtt-simple
command: cpan Net::MQTT::Simple
ansible.builtin.command:
cmd: cpan Net::MQTT::Simple
- name: Add user
user:
ansible.builtin.user:
name: spacestated
home: /var/lib/spacestated
generate_ssh_key: yes
ssh_key_type: ed25519
- name: Clone source
git:
ansible.builtin.git:
repo: https://github.com/bitlair/spacestated.git
version: main
dest: /var/lib/spacestated/spacestated
@ -26,7 +27,7 @@
notify: restart spacestated
- name: Install service file
template:
ansible.builtin.template:
src: spacestated.service
dest: /etc/systemd/system/spacestated.service
owner: root
@ -35,7 +36,7 @@
notify: restart spacestated
- name: Start spacestated
systemd:
ansible.builtin.systemd:
name: spacestated
state: started
enabled: yes