mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #1380 from holta/tmpfiles.d-for-ubermix
Install /etc/tmpfiles.d/iiab.conf during IIAB install process, for Ubermix
This commit is contained in:
commit
3ac670eb96
2 changed files with 20 additions and 0 deletions
3
roles/1-prep/files/iiab.conf
Normal file
3
roles/1-prep/files/iiab.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
d /var/log/apache2 1750 www-data www-data
|
||||
d /var/log/munin/ 1755 munin adm
|
||||
d /var/log/mongodb 1755 mongodb root
|
|
@ -39,6 +39,23 @@
|
|||
set_fact:
|
||||
uuid: "{{ stored_uuid.stdout_lines[0] }}"
|
||||
|
||||
- name: Does directory /ro exist? (indicating OS is Ubermix)
|
||||
stat:
|
||||
path: /ro
|
||||
register: ro_dir
|
||||
|
||||
# - debug:
|
||||
# var: ro_dir
|
||||
|
||||
- name: If so, install /etc/tmpfiles.d/iiab.conf to create /var/log subdirs on each boot, so {Apache, MongoDB, Munin} run on Ubermix
|
||||
copy:
|
||||
src: roles/1-prep/files/iiab.conf
|
||||
dest: /etc/tmpfiles.d/
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: ro_dir.stat.exists
|
||||
|
||||
- name: SSHD
|
||||
include_role:
|
||||
name: sshd
|
||||
|
|
Loading…
Add table
Reference in a new issue