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

Using Ansible get_url module to fix warnings

Using Ansible 'get_url' modules instead of 'wget' to download usbmout package. Fixes warnings in bug #327
This commit is contained in:
Arky 2017-10-01 17:03:24 +07:00
parent 9dbe690c6a
commit 2d433d2872

View file

@ -3,7 +3,7 @@
when: ansible_distribution == "Fedora" and ansible_machine == "armv7l" and ansible_distribution_version|int >= 22 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 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 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!!!
@ -39,7 +39,9 @@
when: is_redhat when: is_redhat
- name: Download usbmount -- not in debian-9 - name: Download usbmount -- not in debian-9
command: wget {{ iiab_download_url }}/usbmount_0.0.14.1_all.deb -P {{ downloads_dir }} get_url:
url: "{{ iiab_download_url }}/usbmount_0.0.14.1_all.deb"
dest: "{{ downloads_dir }}"
when: is_debian_9 when: is_debian_9
- name: Install usbmount for debian-9 - name: Install usbmount for debian-9
@ -97,7 +99,7 @@
- python-pip - python-pip
- python-setuptools - python-setuptools
- python-virtualenv - python-virtualenv
- name: Update common packages (not debian - name: Update common packages (not debian
package: name={{ item }} package: name={{ item }}
state=latest state=latest
@ -124,7 +126,7 @@
# service: name=NetworkManager # service: name=NetworkManager
# state=restarted # state=restarted
# when: not installing # when: not installing
# the above should use a handler - all reboots should wait until all # the above should use a handler - all reboots should wait until all
# mods are preformed # mods are preformed
- name: Install optional exFAT packages for CentOS - name: Install optional exFAT packages for CentOS