Ansible playbook that you can use to control ssh access to your linux servers. You can install or remove keys, tune sshd options and install additional software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
606 B

  1. # If you want to disable key just add key_state: "absent"
  2. # Example: stupid_manager: { keypath: "../keys/stupid_manager.pub", username: "ubuntu", key_state: "absent" }
  3. access_list:
  4. git: { keypath: "../keys/project-git.pub", username: "root" }
  5. dev1: { keypath: "../keys/developer1.pub", username: "root" }
  6. dev2: { keypath: "../keys/developer2.pub", username: "root" }
  7. # use non-standart sshd config
  8. sshd_config_path: "/var/local/etc/ssh/sshd_config"
  9. # allow password auth instead of defaults
  10. # change defaults here roles/ssh_config/defaults/main.yml
  11. sshd_options:
  12. PasswordAuthentication: "yes"