From 2d433d287234641bee1aef37a3c7fe514d862b91 Mon Sep 17 00:00:00 2001 From: Arky Date: Sun, 1 Oct 2017 17:03:24 +0700 Subject: [PATCH] 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 --- roles/2-common/tasks/packages.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 3e2a88611..2c1b68ace 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -3,7 +3,7 @@ when: ansible_distribution == "Fedora" and ansible_machine == "armv7l" and ansible_distribution_version|int >= 22 - 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 - name: install yum if it has been dropped from our distribution -- Fedora 22 uses dnf!!! @@ -39,7 +39,9 @@ when: is_redhat - 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 - name: Install usbmount for debian-9 @@ -97,7 +99,7 @@ - python-pip - python-setuptools - python-virtualenv - + - name: Update common packages (not debian package: name={{ item }} state=latest @@ -124,7 +126,7 @@ # service: name=NetworkManager # state=restarted # 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 - name: Install optional exFAT packages for CentOS