]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common/tasks/kerberos.yml: Test ansible_os_family for packaging type 201/head
authorDan Mick <dan.mick@redhat.com>
Fri, 19 Feb 2016 23:11:06 +0000 (15:11 -0800)
committerDan Mick <dan.mick@redhat.com>
Fri, 19 Feb 2016 23:24:45 +0000 (15:24 -0800)
...rather than ansible_distribution

Fixes: #14751
Signed-off-by: Dan Mick <dan.mick@redhat.com>
roles/common/tasks/kerberos.yml

index c90f285d933cf4bb5a09a7dc975672e684e0684c..c99106ee5cb6aedf5a0fca6c53d577a635667e40 100644 (file)
@@ -5,7 +5,7 @@
   yum:
     name: krb5-workstation
     state: present
-  when: ansible_distribution == 'RedHat'
+  when: ansible_os_family == 'RedHat'
 
 - name: Update apt cache.
   apt:
   # try for 2 minutes before failing
   retries: 24
   delay: 5
-  when: ansible_distribution == 'Debian'
+  when: ansible_os_family == 'Debian'
 
 - name: Install Kerberos Packages (Debian)
   apt:
     name: krb5-user
     state: present
-  when: ansible_distribution == 'Debian'
+  when: ansible_os_family == 'Debian'
 
 - name: Add krb5 config file
   template: