aboutsummaryrefslogblamecommitdiffstats
path: root/roles/httpd/tasks/main.yml
blob: a272afa3091dd9489fbe7d49b9c31b2626c355e5 (plain) (tree)


















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

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

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