Make sure package build-essential is installed
This commit is contained in:
parent
f257396bc2
commit
768f6521ee
1 changed files with 21 additions and 3 deletions
24
platon.yml
24
platon.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue