An Ansible role for openssh-server
. Includes sensible defaults that can be overridden.
Default variables are defined in defaults/main.yml
. To override them set the variables as you normally would in your Ansible scripts.
Variable | Default | Documentation |
---|---|---|
ssh_port |
22 | Documentation |
ssh_password_authentication |
false | Documentation |
ssh_protocol |
true | |
ssh_use_pam |
false | |
ssh_permit_root_login |
false | Documentation |
ssh_allow_users |
false | Documentation |
ssh_x11_forwarding |
false | Documentation |
To develop the role an ansible.cfg
should be added.
{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg
A Vagrant file is provided to support development of this role. To bring up a Virtual Machine and provision it with the role run
vagrant up
If you want to poke about inside the Virtual Machine to run
vagrant ssh
If you make changes and want to run the provisioner again run
vagrant provision
To start again run
vagrant destroy && vagrant up