mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
commit
b8af9d5c79
4 changed files with 7 additions and 14 deletions
|
@ -1,5 +1,2 @@
|
||||||
- name: Create IIAB directory structure
|
|
||||||
include_tasks: fl.yml
|
|
||||||
|
|
||||||
- name: Create {{ iiab_ini_file }}
|
- name: Create {{ iiab_ini_file }}
|
||||||
include_tasks: iiab_ini.yml
|
include_tasks: iiab_ini.yml
|
||||||
|
|
|
@ -16,12 +16,6 @@
|
||||||
path: /etc/iiab/uuid
|
path: /etc/iiab/uuid
|
||||||
register: uuid_file
|
register: uuid_file
|
||||||
|
|
||||||
- name: If not, create folder /etc/iiab
|
|
||||||
file:
|
|
||||||
path: /etc/iiab
|
|
||||||
state: directory
|
|
||||||
when: not uuid_file.stat.exists
|
|
||||||
|
|
||||||
- name: If no uuid exists, create one
|
- name: If no uuid exists, create one
|
||||||
shell: uuidgen
|
shell: uuidgen
|
||||||
register: uuid_response
|
register: uuid_response
|
||||||
|
@ -48,9 +42,10 @@
|
||||||
# var: ro_dir
|
# var: ro_dir
|
||||||
|
|
||||||
- name: Does 'ubermix' exist in /etc/lsb-release?
|
- name: Does 'ubermix' exist in /etc/lsb-release?
|
||||||
shell: grep -i ubermix /etc/lsb-release
|
shell: grep -i ubermix /etc/lsb-release # Pipe to cat to avoid red errors?
|
||||||
register: grep_ubermix
|
register: grep_ubermix
|
||||||
ignore_errors: true
|
failed_when: false # Universal way to hide alarmist red errors!
|
||||||
|
#ignore_errors: true
|
||||||
#check_mode: no
|
#check_mode: no
|
||||||
|
|
||||||
#- debug:
|
#- debug:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
- name: Create 21 directories with ownership root:root and permissions 0755 (3 in /etc, 3 in {{ iiab_base }} and 15 in /library) # iiab_base is /opt/iiab
|
- name: Create 19 directories with ownership root:root and permissions 0755 (1 in /etc, 3 in {{ iiab_base }} and 15 in /library) # iiab_base is /opt/iiab
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -6,8 +6,6 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/iiab
|
|
||||||
- /etc/sysconfig/olpc-scripts/
|
|
||||||
- /etc/sysconfig/olpc-scripts/setup.d/installed/
|
- /etc/sysconfig/olpc-scripts/setup.d/installed/
|
||||||
- "{{ yum_packages_dir }}"
|
- "{{ yum_packages_dir }}"
|
||||||
- "{{ pip_packages_dir }}"
|
- "{{ pip_packages_dir }}"
|
|
@ -3,6 +3,9 @@
|
||||||
- name: ...IS BEGINNING ==========================================
|
- name: ...IS BEGINNING ==========================================
|
||||||
command: echo
|
command: echo
|
||||||
|
|
||||||
|
- name: Create IIAB directory structure
|
||||||
|
include_tasks: fl.yml
|
||||||
|
|
||||||
- include_tasks: centos.yml
|
- include_tasks: centos.yml
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue