From dfbef8361d3ac03788aa1f93b23907bc9595a730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 19 Dec 2017 11:17:04 +0100 Subject: [PATCH] nfs: fix package install for debian/suss systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolves the following error: E: There were unauthenticated packages and -y was used without --allow-unauthenticated Signed-off-by: Sébastien Han --- .../tasks/pre_requisite_non_container.yml | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/roles/ceph-nfs/tasks/pre_requisite_non_container.yml b/roles/ceph-nfs/tasks/pre_requisite_non_container.yml index 48842dd3e..62f8bfc77 100644 --- a/roles/ceph-nfs/tasks/pre_requisite_non_container.yml +++ b/roles/ceph-nfs/tasks/pre_requisite_non_container.yml @@ -109,16 +109,30 @@ - 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