Jenkins playbook

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 ...

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.