From 38a87bbcc1acff7c3b4c9807717507bfde6272c6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 30 Oct 2017 23:29:32 -0400 Subject: [PATCH 2/4] cleanup for readability --- roles/1-prep/tasks/raspberry_pi_2.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/roles/1-prep/tasks/raspberry_pi_2.yml b/roles/1-prep/tasks/raspberry_pi_2.yml index 43a66dc25..f93f734ee 100644 --- a/roles/1-prep/tasks/raspberry_pi_2.yml +++ b/roles/1-prep/tasks/raspberry_pi_2.yml @@ -26,23 +26,23 @@ mode=0644 when: rtc_id != "none" -- name: pre-Install packages +- name: Pre-install packages package: name={{ item }} state=latest with_items: - ntp -- name: increase the swap file size (kalite pip download fails) +- name: Increase the swap file size (kalite pip download fails) lineinfile: regexp="^CONF_SWAPSIZE" line=CONF_SWAPSIZE=500 dest=/etc/dphys-swapfile when: is_debuntu -- name: restart the swap service +- name: Restart the swap service command: /etc/init.d/dphys-swapfile restart when: is_debuntu -- name: Add rpi rootfs resizing service +- name: Add RPi rootfs resizing service template: src={{ item.src }} dest={{ item.dest }} owner=root @@ -55,4 +55,3 @@ - name: Enable rootfs resizing service service: name=iiab-rpi-root-resize enabled=yes - From 17d116433748876f7fa4009dc97f41cb192b55e4 Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 30 Oct 2017 23:30:29 -0400 Subject: [PATCH 3/4] cleanup for readability --- roles/2-common/tasks/xo.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/2-common/tasks/xo.yml b/roles/2-common/tasks/xo.yml index 4c7c1237e..168f978bc 100644 --- a/roles/2-common/tasks/xo.yml +++ b/roles/2-common/tasks/xo.yml @@ -25,7 +25,7 @@ regexp='^%_excludedocs' state=absent -- name: pre-Install packages +- name: Pre-install packages package: name={{ item }} state=latest with_items: @@ -34,7 +34,7 @@ - man-db - man-pages -- name: re-Install packages +- name: Re-install packages shell: yum -y reinstall sed libidn grep which util-linux wget gnupg2 groff gnash yum when: not osbuilder is defined @@ -44,7 +44,7 @@ option=plugins value=ifcfg-rh,keyfile -- name: check for modem config file +- name: Check for modem config file stat: path=/etc/NetworkManager/system-connections/"Sugar Modem Connection" register: config From 0ffbd6f11954dff28184199354a56f9d39a3ed84 Mon Sep 17 00:00:00 2001 From: A Holt Date: Mon, 30 Oct 2017 23:34:39 -0400 Subject: [PATCH 4/4] cleanup for readability --- roles/2-common/tasks/packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 700159be6..e409b5dee 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -1,16 +1,16 @@ -- name: install yum deps for arm!!! +- name: Install yum deps for arm!!! shell: dnf install -y python-urlgrabber pyxattr yum-metadata-parser when: ansible_distribution == "Fedora" and ansible_machine == "armv7l" and ansible_distribution_version|int >= 22 -- name: install yum from Fedora 23 for arm!!! +- name: Install yum from Fedora 23 for arm!!! shell: dnf install -y https://kojipkgs.fedoraproject.org//packages/yum/3.4.3/506.fc23/noarch/yum-3.4.3-506.fc23.noarch.rpm python-dnf when: ansible_distribution == "Fedora" and ansible_machine == "armv7l" and ansible_distribution_version|int >= 22 -- name: install yum if it has been dropped from our distribution -- Fedora 22 uses dnf!!! +- name: Install yum if it has been dropped from our distribution -- Fedora 22 uses dnf!!! shell: dnf install -y yum when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 22 and ansible_machine != "armv7l" -- name: get the createrepo program +- name: Get the createrepo program package: name=createrepo state=present when: is_redhat