]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
nfs: fix package install for debian/suss systems
authorSébastien Han <seb@redhat.com>
Tue, 19 Dec 2017 10:17:04 +0000 (11:17 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 19 Dec 2017 12:30:49 +0000 (13:30 +0100)
This resolves the following error:
E: There were unauthenticated packages and -y was used without
--allow-unauthenticated

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-nfs/tasks/pre_requisite_non_container.yml

index 48842dd3ed625baba25f614b03436e9228eee396..62f8bfc77efd176dee2b95ac32163cff76461675 100644 (file)
     - ansible_os_family in ['Debian', 'Suse']
     - nfs_file_gw
 
-- name: install nfs rgw gateway
-  package:
+- name: install nfs rgw gateway - suse
+  zypper:
     name: "{{ item }}"
+    disable_gpg_check: yes
   with_items:
     - nfs-ganesha-rgw
     - radosgw
   when:
     - (ceph_origin == 'repository' or ceph_origin == 'distro')
     - ceph_repository != 'rhcs'
-    - ansible_os_family in ['Debian', 'Suse']
+    - ansible_os_family == 'Suse'
+    - nfs_obj_gw
+
+- name: install nfs rgw gateway - debian
+  apt:
+    name: "{{ item }}"
+    allow_unauthenticated: yes
+  with_items:
+    - nfs-ganesha-rgw
+    - radosgw
+  when:
+    - (ceph_origin == 'repository' or ceph_origin == 'distro')
+    - ceph_repository != 'rhcs'
+    - ansible_os_family == 'Debian'
     - nfs_obj_gw
 
 # debian_rhcs installation