This is the code repository for Learning Ansible 2 Second Edition, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
All of the code is organized into folders. For example, Chapter 02
.
Code Snippet:
---
- hosts: all
remote_user: fale
tasks:
- name: Ensure the HTTPd package is installed
yum:
name: httpd
state: present
become: True
- name: Ensure the HTTPd service is enabled and running
service:
name: httpd
state: started
enabled: True
become: True
Click here if you have any feedback or suggestions.