1
0
Fork 0
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:
A Holt 2019-01-10 20:04:52 -05:00 committed by GitHub
commit 3ac670eb96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View 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

View file

@ -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