Let's dive straight in and create a playbook that installs Jenkins using just roles downloaded from Ansible Galaxy.
Jenkins, formerly the Hudson project, is an open source continuous integration and continuous delivery server written in Java. It is expandable using plugins and has grown much bigger than its original purpose of compiling Java applications.
To start, we are going to need a few files; let's get these created now by running the following:
$ mkdir jenkins
$ cd jenkins
$ touch production requirements.yml site.yml Vagrantfile
As you can see, we are not creating a roles or group_vars folder as we have been doing in previous chapters. Instead, we are creating a requirements.yml file. This will contain a list of the roles we would like to download from Ansible Galaxy.
In our case, we are going to be using the following two roles:
- Java: https:/...