Make sure package build-essential is installed

This commit is contained in:
Stefan Haun 2022-07-24 18:28:08 +02:00
parent f257396bc2
commit 768f6521ee

View file

@ -24,6 +24,7 @@
- tmux
- git-core
- cmake
- build-essential
- libmosquitto-dev
- libconfig-dev
- mpg123
@ -211,10 +212,27 @@
### Syslog setup for shuttercontrol.log
- name: Check if rsyslog is actually installed
ansible.builtin.package:
name: rsyslog
state: present
check_mode: true
register: rsyslog_check
- name: Fail if rsyslog is missing
ansible.builtin.fail:
msg: "Please make sure that rsyslog is installed!"
when: rsyslog_check is not succeeded
- name: Make sure shuttercontrol.log exists
ansible.builtin.file:
path: /var/log/shuttercontrol.log
state: touch
ansible.builtin.copy:
content: ""
dest: /var/log/shuttercontrol.log
# force=no ensures the file is created only if it does not exist
force: no
owner: root
group: root
mode: "0644"
- name: Copy syslog setting for shuttercontrol
ansible.builtin.copy: