ansible plays testbed
Go to file
Konarak 9e485dbc7a add rationale for external roles 2019-09-24 16:25:05 +05:30
group_vars add ansible playbook and task details 2019-09-24 04:21:03 +00:00
host_vars add ansible playbook and task details 2019-09-24 04:21:03 +00:00
.gitignore Initial commit 2019-09-24 08:52:30 +05:30
README.md add rationale for external roles 2019-09-24 16:25:05 +05:30
Vagrantfile add ansible playbook and task details 2019-09-24 04:21:03 +00:00
ansible.cfg add ansible playbook and task details 2019-09-24 04:21:03 +00:00
hosts add ansible playbook and task details 2019-09-24 04:21:03 +00:00
requirements.yml add ansible playbook and task details 2019-09-24 04:21:03 +00:00
site.yml add ansible playbook and task details 2019-09-24 04:21:03 +00:00

README.md

playground

ansible plays testbed

tasks

  1. Write a bash script that creates and boots Vagrant box (https://vagrant.io) with Ubuntu
  2. Write an Ansible script that connects to this Vagrant box and does the following on it:
    • Creates a user "testuser"
    • Sets the system's timezone to "Asia/Kolkata"
    • Uploads a random local file from the host into the /home/testuser/ directory
    • Installs python, supervisord, and the latest version of consul (https://consul.io)

try it

Clone the repo:

$ git clone https://git.planet-express.in/konarak/playground.git
$ ansible-galaxy install -r requirements.yml
$ vagrant up
$ vagrant ssh bionic1

external roles

This playbook uses external roles because while installation of both supervisord, and consul is manageable via a couple of ansible tasks we're left without any configuration management. Both of these roles seem to be trusted by the ansible galaxy community.