additional course material RH294
Olaf Bohlen
2020-02-19 08669995dd66a7051d2fc222fec02a0bc71c1dff
commit | author | age
97d9af 1 ---
SU 2 - name: Introduce roles
3   hosts: server
4   become: true
5   pre_tasks:
6     - name: pre_tasks run here
7       debug:
8         msg: 'this runs before the roles'
9   roles:
10     - prep_server
11
12   post_tasks:
13     - name: post_tasks run here
14       debug:
15         msg: 'this runs after the roles'
16     - name: retrieve content from port 80
17       uri:
18         url: "http://localhost:80/index.html"
19         return_content: yes
20       when: port == 'http'