July 2017
Intermediate to advanced
402 pages
9h 38m
English
We are first going to go into the role directory that is present at the root location of our ansible repository:
$ cd roles
As before, we will rely on ansible-galaxy to put in place the scaffolding needed to create our role:
$ ansible-galaxy init codedeploy
Our role will be very simple; we are going to edit the file codedeploy/tasks/main.yml and make a call to the new module that the aws_codedeploy library brings as follows:
---
# tasks file for codedeploy
- name: Installs and starts the AWS CodeDeploy Agent
aws_codedeploy:
enabled: yes
At this point, we can create our new playbook for generic nodejs web servers.
We are going to go back in the root directory of the ansible repository:
$ cd ..
There, ...
Read now
Unlock full access