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' |