aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd/tasks/main.yml
blob: ce4853ac09bc867983e24c1bf01b1a53ff34018a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---

- name: retrieve all configuration files
  ansible.builtin.find:
    path: "{{ httpd_configuration_dir }}"
    patterns: "*.conf"
  register: configuration_files

- name: generate httpd configuration
  ansible.builtin.template:
    src: httpd.conf.j2
    dest: "{{ httpd_configuration_file }}"
    owner: 0
    group: 0
    mode: 0644

- name: enable and restart httpd
  ansible.builtin.service:
    name: httpd
    state: restarted
    enabled: true
remember that computers suck.