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:
|
set_fact:
|
||||||
uuid: "{{ stored_uuid.stdout_lines[0] }}"
|
uuid: "{{ stored_uuid.stdout_lines[0] }}"
|
||||||
|
|
||||||
- name: Does directory /ro exist? (indicating OS is Ubermix)
|
#- name: Does directory /ro exist? (indicating OS is Ubermix)
|
||||||
stat:
|
# stat:
|
||||||
path: /ro
|
# path: /ro
|
||||||
register: ro_dir
|
# register: ro_dir
|
||||||
|
|
||||||
# - debug:
|
#- debug:
|
||||||
# var: ro_dir
|
# 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
|
- 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:
|
copy:
|
||||||
|
@ -54,7 +63,9 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
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
|
- name: SSHD
|
||||||
include_role:
|
include_role:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue