blob: 4abf95a82771b049162b4d6da13acd72307f3be8 (
plain) (
blame)
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
|
# dns ~~ roles/dns/tasks/main.yml
# ensure host is using unified dns
---
- name: ensure httpd.d directory exists
file:
path: /etc/httpd.d
state: directory
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: retrieve all configuration files
find:
path: /etc/httpd.d
patterns: "*.conf"
register: configurations
- name: generate httpd configuration
template:
src: httpd.conf.j2
dest: /etc/httpd.conf
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: enable and restart httpd
service:
name: httpd
state: restarted
enabled: true
|