forked from saratov/infra
23 lines
573 B
YAML
23 lines
573 B
YAML
---
|
|
|
|
- name: check required variables
|
|
fail: msg="{{ item }} is not defined"
|
|
when: item not in vars
|
|
with_items: "{{ krb5_cl_required_vars }}"
|
|
|
|
- meta: flush_handlers
|
|
|
|
- name: install Kerberos 5 client packages
|
|
apt_rpm:
|
|
pkg: "{{ krb5_cl_packages | join(',')}}"
|
|
state: installed
|
|
update_cache: yes
|
|
when: krb5_cl_packages | length > 0
|
|
|
|
- name: register node in localhost hostvars
|
|
set_fact:
|
|
kdc_clients: "{{ hostvars['localhost']['kdc_clients'] | default([]) }} + [ '{{ inventory_hostname_short }}' ]"
|
|
delegate_to: localhost
|
|
delegate_facts: true
|
|
|