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:
parent
04c6102485
commit
b439ef36d4
1 changed files with 18 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue