July 2017
Intermediate to advanced
402 pages
9h 38m
English
We first need to go into the roles directory of our Ansible repository:
$ cd roles
We will use the ansible-galaxy command to generate our new role:
$ ansible-galaxy init cloudwatch - cloudwatch was created successfully
We will create a minimal role that allows us to report some of those missing stats. With your text editor, open the file cloudwatch/tasks/main.yml.
We will use an open source tool called cloudwatchmon. You can access its code source and documentation on the GitHub page of the project at http://bit.ly/2pYjhI9. The tool is written in Python and is available through pip. To install pip packages, ansible provides a pip module. After the initial comment of the task, add the following:
--- ...
Read now
Unlock full access