additional course material RH294
Olaf Bohlen
2019-12-04 96eda8797a3510ea39108406fdbedd1d0a1d47e0
commit | author | age
97d9af 1 ---
SU 2 - name: Simple play that sets up webservers
3   hosts: server
4   become: true
5   tasks:
6     - name: install httpd package
7       package:
8         name: httpd
9         state: present
10     - name: ensure httpd is started and enabled
11       service:
12         name: httpd
13         state: started
14         enabled: true
15       
16 - name: 'Next play to verify for the webserver process'
17   hosts: server
18   become: false
19   remote_user: student
20   tasks:
21     - name: 'grep PIDs of httpd'
22       command: pgrep httpd
23