File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 17
17
- ssh_key_path | expanduser is exists
18
18
fail_msg : " Could not find SSH key at {{ ssh_key_path | expanduser }}"
19
19
20
+ - name : Verify ssh public key exists
21
+ ansible.builtin.assert :
22
+ that :
23
+ - (ssh_key_path ~ '.pub') | expanduser is exists
24
+ fail_msg : " Could not find SSH key at {{ (ssh_key_path ~ '.pub') | expanduser }}"
25
+
20
26
- name : Verify vault password path has been set
21
27
ansible.builtin.assert :
22
28
that :
42
48
gather_subset :
43
49
- user_dir
44
50
51
+ # TODO: Remove this when Red Hat FIPS policy has been updated to allow ed25519 keys.
52
+ # https://gitlab.com/gitlab-org/gitlab/-/issues/367429#note_1840422075
53
+ - name : Verify ssh key is not ed25519
54
+ ansible.builtin.assert :
55
+ that :
56
+ - " 'ssh-ed25519' not in lookup('ansible.builtin.file', (ssh_key_path ~ '.pub') | expanduser)"
57
+ fail_msg : " FIPS policy does not currently support ed25519 SSH keys on RHEL family systems"
58
+ when : ansible_facts['os_family'] == "RedHat"
59
+
45
60
- name : Ensure git is present
46
61
ansible.builtin.package :
47
62
name : git
You can’t perform that action at this time.
0 commit comments