Skip to content
Snippets Groups Projects
Verified Commit cfdffece authored by David Mehren's avatar David Mehren
Browse files

Improve multi-platform compatibility

parent faf3c838
No related branches found
No related tags found
No related merge requests found
--- ---
- name: install openssh-server - name: Install openssh-server
ansible.builtin.apt: ansible.builtin.package:
name: openssh-server name: openssh-server
state: present state: present
notify: start sshd notify: start sshd
# Remove every moduli that is unsafer than 3071 # Remove every moduli that is unsafer than 3071
- name: remove unsafe moduli - name: Remove unsafe moduli
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
regexp: '\d* \d \d \d\d\d (([0-9]\d?\d?)|([1-2]\d\d\d)|(30[0-6]\d)|(3070)) \d [0-9A-Z]*' regexp: '\d* \d \d \d\d\d (([0-9]\d?\d?)|([1-2]\d\d\d)|(30[0-6]\d)|(3070)) \d [0-9A-Z]*'
state: absent state: absent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment