system-config/roles/kerberos-client/tasks/main.yaml
Ian Wienand 5b09e09c60 kerberos-client: remove kstart requirement on CentOS
All our AFS release roles use "kinit" for authentication.  The only
scripts using k5start are the mirror scripts, but since that doesn't
run on CentOS we don't need it there.

This avoids us having to use EPEL or, on 8, an unsupported build.
Anything needing to be portable should use kinit from now on.

Change-Id: I6323cb835cedf9974cf8d96faa7eb55b8aaafd9a
2020-01-23 12:27:46 +11:00

32 lines
762 B
YAML

- name: Get OS specific package names
include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- "{{ ansible_distribution }}.{{ ansible_architecture }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- "default.yaml"
paths:
- vars
- name: Check package names
fail:
msg: 'No kerberos client packages defined for this platform'
when: not kerberos_client_packages
- name: Install configuration file
template:
dest: /etc/krb5.conf
owner: root
group: root
mode: 0644
src: etc/krb5.conf.j2
become: yes
- name: Install kerberos client packages
package:
name: '{{ kerberos_client_packages }}'
state: present
become: yes