- name: Install packages package: name: - krb5-kdc state: present - name: Ensure directories file: path: '{{ item }}' state: directory mode: 0755 owner: root group: root loop: - /etc/krb5kdc - /var/krb5kdc - name: Install KDC config template: src: 'kdc.conf.j2' dest: '/etc/krb5kdc/kdc.conf' mode: 0644 owner: root group: root - name: Copy kadm5.acl copy: src: kadm5.acl dest: '/etc/krb5kdc/kadm5.acl' mode: 0644 owner: root group: root