July 2017
Intermediate to advanced
402 pages
9h 38m
English
We are going to start by navigating to our ansible/roles directory:
$ cd ansible/roles
We should have in this directory the helloworld and nodejs directories containing the configurations we created previously in Chapter 3, Treating Your Infrastructure As Code. We are now going to create our Jenkins role with the ansible-galaxy command:
$ ansible-galaxy init jenkins
We are now going to edit the task definition for this new role by editing the file jenkins/tasks/main.yml.
Open up the file with your favorite text editor.
The goal of our task is to install and start Jenkins. In order to do so, since we are on a Redhat-based operating system, we are going to install an RPM package through yum. Jenkins ...
Read now
Unlock full access