Automated security-target SSH configuration.
ansible-galaxy install Furdarius.SSH
All variables can be found in defaults/main.yml
---
- hosts: all
become: true
roles:
- ssh
vars:
ssh_port: 12013
users:
- { name: admin, sudoers: false, password: "76523494", public_key: ./keys/admin_key.pub }
- { name: ansible, sudoers: true, public_key: ~/.ssh/id_rsa.pub }