zuul-jobs/roles/create-afs-token/tasks/main.yaml
Jeremy Stanley 2711d10186 Be consistent about spaces before and after vars
With the arrival of ansible-lint 4, Jinja2 variable expansions must
include spaces before and after the variable name inside the
brackets.

Adjust the new violations accordingly and remove the rule
206 exclusion.

Change-Id: Ib3ff7b0233a5d5cf99772f9c2adc81861cf34ffa
2019-08-07 20:17:41 +01:00

22 lines
522 B
YAML

- name: Create AFS keytab tempfile
tempfile:
state: file
register: afs_keytab_tmp
- name: Create (base64 decode) AFS keytab from secret
copy:
content: "{{ afs.keytab | b64decode }}"
dest: "{{ afs_keytab_tmp.path }}"
mode: 0400
- name: Obtain ticket for Kerberos
command: "kinit -k -t {{ afs_keytab_tmp.path }} {{ afs.service_name }}"
- name: Delete AFS keytab tempfile
file:
path: "{{ afs_keytab_tmp.path }}"
state: absent
- name: Obtain authentication token for AFS
command: aklog