Skip to content

shapeshed/openssh-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role for openssh-server

Build Status

An Ansible role for openssh-server. Includes sensible defaults that can be overridden.

Default variables

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

Development

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