blob: 6c91aac594b61c43da09570a8ba71770b9db9d08 (
plain) (
tree)
|
|
# httpd ~~ roles/httpd/tasks/main.yml
# OpenBSD httpd
---
- 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
|