MVladislav / ansible-ssh

ansible-role to setup ssh-service as defined by mozilla :: https://infosec.mozilla.org/guidelines/openssh.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSH

Ansible Lint Ansible Molecule Test


You can checkout MVladislav - ansible-env-setup - playbooks for how i use it in general.

Tested with:

  • Ubuntu 23.04

Role Variables

clients:
  - name: "{{ ansible_user }}"

ssh_only_client_setup: false

Dependencies

Developed and testes with Ansible 2.14.4

Example Playbook

- hosts: servers
  roles:
    - role: ansible-ssh
      clients:
        - name: "{{ ansible_user }}"
      ssh_only_client_setup: false

License

MIT

OTHER

deprecation remove

sed -i '/KeyRegenerationInterval/d' /etc/ssh/sshd_config
sed -i '/ServerKeyBits/d' /etc/ssh/sshd_config
sed -i '/RSAAuthentication/d' /etc/ssh/sshd_config
sed -i '/RhostsRSAAuthentication/d' /etc/ssh/sshd_config
sed -i '/UsePrivilegeSeparation/d' /etc/ssh/sshd_config

About

ansible-role to setup ssh-service as defined by mozilla :: https://infosec.mozilla.org/guidelines/openssh.html

License:MIT License


Languages

Language:Jinja 100.0%