1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #479 from holta/master

more readable: 1-prep/tasks/raspberry_pi_2.yml + 2-common/tasks/xo.yml + 2-common/tasks/packages.yml
This commit is contained in:
A Holt 2017-10-30 23:39:05 -04:00 committed by GitHub
commit 50a0256ebc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 12 deletions

View file

@ -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

View file

@ -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

View file

@ -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