Skip to content

Commit

Permalink
Merge pull request #484 from konstruktoid/moduli
Browse files Browse the repository at this point in the history
use rsa size variable and print moduli checksum
  • Loading branch information
konstruktoid authored Jan 11, 2024
2 parents c5f6db1 + a161242 commit ee0c982
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
shell: /bin/bash
create_home: true
generate_ssh_key: true
ssh_key_bits: 3072
ssh_key_bits: "{{ sshd_required_rsa_size }}"
ssh_key_file: .ssh/id_rsa
ssh_key_type: rsa
loop:
- testuser01
- testuser02
Expand Down Expand Up @@ -1034,3 +1035,12 @@
- name: Print test user
ansible.builtin.debug:
msg: "{{ roletestuser_pass.stdout }}"

- name: Stat ssh moduli
ansible.builtin.stat:
path: /etc/ssh/moduli
register: ssh_moduli

- name: Print ssh moduli checksum
ansible.builtin.debug:
msg: "{{ ssh_moduli.stat.checksum }}"
2 changes: 1 addition & 1 deletion tasks/sshconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
become: true
ansible.builtin.find:
paths: /etc/ssh
patterns: '*_host_dsa_key*'
patterns: "*_host_dsa_key*"
register: dsa_files

- name: Remove DSA host files
Expand Down

0 comments on commit ee0c982

Please sign in to comment.