Skip to content

Commit 30bef58

Browse files
committed
refactor(kerberos): remove condition to create headless keytab
1 parent 2ef3956 commit 30bef58

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

roles/utils/kerberos/tasks/create_headless_principal_keytab.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,18 @@
3838
ansible.builtin.import_role:
3939
name: tosit.tdp.utils.kerberos
4040
tasks_from: create_principal_keytab
41-
when: headless_keytab | length == 0
4241
run_once: true
4342

4443
- name: Load the new headless_keytab when not exists
4544
ansible.builtin.slurp:
4645
src: "{{ keytabs_dir }}/{{ keytab }}"
4746
register: headless_keytab_encoded
4847
run_once: true
49-
when: headless_keytab | length == 0
5048

5149
- name: Set fact the new headless_keytab when not exists
5250
ansible.builtin.set_fact:
5351
headless_keytab: "{{ headless_keytab_encoded.content }}"
5452
run_once: true
55-
when: headless_keytab | length == 0
5653

5754
# Final Step : Copy the headless_keytab to all hosts with an idempotent behavior
5855
- name: Copy headless_keytab to all hosts

0 commit comments

Comments
 (0)