nfs: fix package install for debian/suss systems

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>
pull/2283/head
Sébastien Han 2017-12-19 11:17:04 +01:00
parent 50a848dc40
commit dfbef8361d
1 changed files with 17 additions and 3 deletions

View File

@ -109,16 +109,30 @@
- ansible_os_family in ['Debian', 'Suse'] - ansible_os_family in ['Debian', 'Suse']
- nfs_file_gw - nfs_file_gw
- name: install nfs rgw gateway - name: install nfs rgw gateway - suse
package: zypper:
name: "{{ item }}" name: "{{ item }}"
disable_gpg_check: yes
with_items: with_items:
- nfs-ganesha-rgw - nfs-ganesha-rgw
- radosgw - radosgw
when: when:
- (ceph_origin == 'repository' or ceph_origin == 'distro') - (ceph_origin == 'repository' or ceph_origin == 'distro')
- ceph_repository != 'rhcs' - 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 - nfs_obj_gw
# debian_rhcs installation # debian_rhcs installation