Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
fixes idempotence for small moduli removal
Browse files Browse the repository at this point in the history
remove moduli task was missing become
  • Loading branch information
wookietreiber committed Jan 16, 2024
1 parent fa40322 commit ea130c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions molecule/alternative/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ provisioner:
- aes256-ctr
ssh_macs:
- [email protected]
ssh_modulus_min: 3071
host_vars:
archlinux:
ansible_user: ansible
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

- name: remove small moduli from /etc/ssh/moduli # noqa no-handler
ansible.builtin.script: 'mod-moduli.sh {{ ssh_modulus_min }}'
become: yes
when: >-
not ansible_check_mode and
ssh_modulus_min is defined and
Expand Down

0 comments on commit ea130c6

Please sign in to comment.