1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update main.yml

This commit is contained in:
A Holt 2019-01-12 16:19:07 -05:00 committed by GitHub
parent 04c6102485
commit b439ef36d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,13 +39,22 @@
set_fact:
uuid: "{{ stored_uuid.stdout_lines[0] }}"
- name: Does directory /ro exist? (indicating OS is Ubermix)
stat:
path: /ro
register: ro_dir
#- name: Does directory /ro exist? (indicating OS is Ubermix)
# stat:
# path: /ro
# register: ro_dir
# - debug:
# var: ro_dir
#- debug:
# var: ro_dir
- name: Does 'ubermix' exist in /etc/lsb-release?
shell: grep -i ubermix /etc/lsb-release
register: grep_ubermix
ignore_errors: true
#check_mode: no
#- debug:
# var: grep_ubermix
- 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:
@ -54,7 +63,9 @@
owner: root
group: root
mode: 0644
when: ro_dir.stat.exists
force: yes
when: grep_ubermix.rc == 0 # 1 if absent in file, 2 if file doesn't exist
#when: ro_dir.stat.exists
- name: SSHD
include_role: