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
|
- tmux
|
||||||
- git-core
|
- git-core
|
||||||
- cmake
|
- cmake
|
||||||
|
- build-essential
|
||||||
- libmosquitto-dev
|
- libmosquitto-dev
|
||||||
- libconfig-dev
|
- libconfig-dev
|
||||||
- mpg123
|
- mpg123
|
||||||
|
@ -211,10 +212,27 @@
|
||||||
|
|
||||||
### Syslog setup for shuttercontrol.log
|
### 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
|
- name: Make sure shuttercontrol.log exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.copy:
|
||||||
path: /var/log/shuttercontrol.log
|
content: ""
|
||||||
state: touch
|
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
|
- name: Copy syslog setting for shuttercontrol
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Reference in a new issue