mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
0d2d29b386
commit
1bd1fbda8f
1 changed files with 11 additions and 11 deletions
|
@ -3,12 +3,12 @@
|
||||||
- name: ...IS BEGINNING ============================================
|
- name: ...IS BEGINNING ============================================
|
||||||
command: echo
|
command: echo
|
||||||
|
|
||||||
- name: get the uuidgen program
|
- name: Get the uuidgen program
|
||||||
package: name=uuid-runtime
|
package: name=uuid-runtime
|
||||||
state=present
|
state=present
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: Test for UUID file
|
- name: Test for /etc/iiab/uuid file
|
||||||
stat: path=/etc/iiab/uuid
|
stat: path=/etc/iiab/uuid
|
||||||
register: uuid_file
|
register: uuid_file
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@
|
||||||
shell: echo {{ uuid_response.stdout_lines[0] }} > /etc/iiab/uuid
|
shell: echo {{ uuid_response.stdout_lines[0] }} > /etc/iiab/uuid
|
||||||
when: not uuid_file.stat.exists
|
when: not uuid_file.stat.exists
|
||||||
|
|
||||||
- name: get the uuid
|
- name: Get the uuid
|
||||||
command: cat /etc/iiab/uuid
|
command: cat /etc/iiab/uuid
|
||||||
register: stored_uuid
|
register: stored_uuid
|
||||||
|
|
||||||
- name: get the value into a variable
|
- name: Get the value into a variable
|
||||||
set_fact:
|
set_fact:
|
||||||
uuid={{ stored_uuid.stdout_lines[0] }}
|
uuid={{ stored_uuid.stdout_lines[0] }}
|
||||||
|
|
||||||
|
@ -48,26 +48,26 @@
|
||||||
dest=/etc/chrony.conf
|
dest=/etc/chrony.conf
|
||||||
src=chrony.conf.j2
|
src=chrony.conf.j2
|
||||||
|
|
||||||
- name: Disable apparmor -- on by default in ubuntu
|
- name: Disable AppArmor -- on by default in Ubuntu
|
||||||
service: name=apparmor enabled=False state=stopped
|
service: name=apparmor enabled=False state=stopped
|
||||||
when: first_run and is_ubuntu
|
when: first_run and is_ubuntu
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Disable selinux on next boot
|
- name: Disable SELinux on next boot
|
||||||
selinux: state=disabled
|
selinux: state=disabled
|
||||||
register: selinux_disabled
|
register: selinux_disabled
|
||||||
when: first_run and not is_debuntu
|
when: first_run and not is_debuntu
|
||||||
|
|
||||||
- name: Disable selinux for this session (if needed)
|
- name: Disable SELinux for this session (if needed)
|
||||||
command: setenforce Permissive
|
command: setenforce Permissive
|
||||||
when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
|
when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
|
||||||
|
|
||||||
## DISCOVER PLATFORMS ######
|
## DISCOVER PLATFORMS ######
|
||||||
- name: Discover if this is a rpi -- assume if so it is running raspbian
|
- name: Discover if this is an rpi -- assume it is running Raspbian if so
|
||||||
set_fact:
|
set_fact:
|
||||||
rpi_model: "rpi"
|
rpi_model: "rpi"
|
||||||
is_rpi: "True"
|
is_rpi: "True"
|
||||||
when: ansible_local.local_facts.os == "raspbian"
|
when: ansible_local.local_facts.os == "raspbian"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- include: prep.yml
|
- include: prep.yml
|
||||||
|
@ -77,13 +77,13 @@
|
||||||
- include: raspberry_pi_2.yml
|
- include: raspberry_pi_2.yml
|
||||||
when: first_run and rpi_model != "none"
|
when: first_run and rpi_model != "none"
|
||||||
|
|
||||||
- name: Check if the identifier for intel's NUC6 builtin wifi is present
|
- name: Check if the identifier for Intel's NUC6 builtin WiFi is present
|
||||||
shell: "lsusb | grep 8087:0a2b | wc |awk '{print $1}'"
|
shell: "lsusb | grep 8087:0a2b | wc |awk '{print $1}'"
|
||||||
register: usb_NUC6
|
register: usb_NUC6
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: first_run
|
when: first_run
|
||||||
|
|
||||||
- name: download the firmware for built in wifi on NUC6
|
- name: Download the firmware for built-in WiFi on NUC6
|
||||||
get_url: dest=/lib/firmware
|
get_url: dest=/lib/firmware
|
||||||
url={{ iiab_download_url }}/iwlwifi-8000C-13.ucode
|
url={{ iiab_download_url }}/iwlwifi-8000C-13.ucode
|
||||||
when: first_run and usb_NUC6.stdout|int > 0
|
when: first_run and usb_NUC6.stdout|int > 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue