1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #201 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2019-01-15 15:31:59 -05:00 committed by GitHub
commit b8af9d5c79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 14 deletions

View file

@ -1,5 +1,2 @@
- name: Create IIAB directory structure
include_tasks: fl.yml
- name: Create {{ iiab_ini_file }}
include_tasks: iiab_ini.yml

View file

@ -16,12 +16,6 @@
path: /etc/iiab/uuid
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
shell: uuidgen
register: uuid_response
@ -48,9 +42,10 @@
# var: ro_dir
- 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
ignore_errors: true
failed_when: false # Universal way to hide alarmist red errors!
#ignore_errors: true
#check_mode: no
#- debug:

View file

@ -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:
path: "{{ item }}"
owner: root
@ -6,8 +6,6 @@
mode: 0755
state: directory
with_items:
- /etc/iiab
- /etc/sysconfig/olpc-scripts/
- /etc/sysconfig/olpc-scripts/setup.d/installed/
- "{{ yum_packages_dir }}"
- "{{ pip_packages_dir }}"

View file

@ -3,6 +3,9 @@
- name: ...IS BEGINNING ==========================================
command: echo
- name: Create IIAB directory structure
include_tasks: fl.yml
- include_tasks: centos.yml
when: ansible_distribution == "CentOS"