52780440ff
In a follow-on change (I9bf74df351e056791ed817180436617048224d2c) I want to use #noqa to ignore an ansible-lint rule on a task; however emperical testing shows that it doesn't work with 3.5.1. Upgrading to 4.1.0 it seems whatever was wrong has been fixed. This, however, requires upgrading to 4.1.0. I've been through the errors ... the comments inline I think justify what has been turned off. The two legitimate variable space issues I have rolled into this change; all other hits were false positives as described. Change-Id: I7752648aa2d1728749390cf4f38459c1032c0877
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
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
|
|
|
|
# NOTE(ianw): urgh, we have to install with yum directly to enable
|
|
# epel on CentOS for kstart, which is a pretty hard dependency for
|
|
# useful automation. If this ever changes, remove this and we can
|
|
# just go back to generic package: installer.
|
|
- name: Distro install kerberos client packages
|
|
include_tasks: "{{ lookup('first_found', params) }}"
|
|
vars:
|
|
params:
|
|
files:
|
|
- "{{ ansible_distribution }}.yaml"
|
|
- "default.yaml"
|
|
paths:
|
|
- install-packages |