-
Notifications
You must be signed in to change notification settings - Fork 0
/
data1.yml
38 lines (38 loc) · 872 Bytes
/
data1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- name: Installing Webserver
hosts: dev
become: true
tasks:
- name: Install a webserver
yum:
name: httpd
state: latest
- name: Start Service
service:
name: httpd
state: started
- name: Enable Service
service:
name: httpd
enabled: true
- name: Install a firewalld
yum:
name: firewalld
state: latest
- name: started firewalld
service:
name: firewalld
state: started
- name: Enable firewalld
service:
name: firewalld
enabled: true
- name: allow http
firewalld:
service: https
permanent: true
state: enabled
immediate: yes
- name: test html page is installed
copy:
content: "Welcome to the example.com intranet!\n"
dest: /var/www/html/index.html