File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
handlers :
11
11
- name : restart apache
12
- service :
12
+ ansible.builtin. service :
13
13
name : " {{ apache_service }}"
14
14
state : restarted
15
15
16
16
pre_tasks :
17
17
- name : Override Apache vars for Red Hat.
18
- set_fact :
18
+ ansible.builtin. set_fact :
19
19
apache_package : httpd
20
20
apache_service : httpd
21
21
when : ansible_os_family == 'RedHat'
22
22
23
23
tasks :
24
24
- name : Ensure Apache is installed.
25
- package :
25
+ ansible.builtin. package :
26
26
name : " {{ apache_package }}"
27
27
state : present
28
28
29
29
- name : Copy a web page.
30
- copy :
30
+ ansible.builtin. copy :
31
31
content : |
32
32
<html>
33
33
<head><title>Hello world!</title></head>
38
38
notify : restart apache
39
39
40
40
- name : Ensure Apache is running and starts at boot.
41
- service :
41
+ ansible.builtin. service :
42
42
name : " {{ apache_service }}"
43
43
state : started
44
44
enabled : true
Original file line number Diff line number Diff line change 4
4
5
5
tasks :
6
6
- name : Update apt cache (on Debian).
7
- apt :
7
+ ansible.builtin. apt :
8
8
update_cache : true
9
9
cache_valid_time : 3600
10
10
when : ansible_os_family == 'Debian'
11
11
12
- - import_playbook : ../../main.yml
12
+ - ansible.builtin. import_playbook : ../../main.yml
Original file line number Diff line number Diff line change 4
4
5
5
tasks :
6
6
- name : Verify Apache is serving web requests.
7
- uri :
7
+ ansible.builtin. uri :
8
8
url : http://localhost/
9
9
status_code : 200
You can’t perform that action at this time.
0 commit comments