DEPRECATED
We have moved to a cloud-init based solution.
This Ansible role provides an opinionated host setup procedure.
This role is not yet on Galaxy. You can install this from the GitHub repository:
ansible-galaxy install --force git+https://github.com/telostat/ansible-role-teloshost
TODO: Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
TODO: A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
TODO: A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
See playbook.yml for an example playbook and config.example.yml for an example configuration file.
BSD-3-Clause
Launch a Vagrant machine:
vagrant up
Get the SSH configuration and add it to your personal SSH configuration file:
vagrant ssh-config --host teloshost >> ~/.ssh/conf.d/teloshost
Test SSH connection:
ssh teloshost
Install the role from local git repository:
ansible-galaxy install --force git+file://<absolute-path-to-this-repository>
... or from remote git repository
ansible-galaxy install --force git+https://github.com/telostat/ansible-role-teloshost
Setup ansible requirements:
ansible-galaxy install -r requirements.yml
Copy the example configuration file:
cp config.example.yml config.yml
..., edit it, and run the test playbook:
ansible-playbook -i teloshost, -e @config.yml playbook.yml