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:
commit
50a0256ebc
3 changed files with 11 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue