Skip to content

MVladislav/ansible-ssh

Repository files navigation

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