aboutsummaryrefslogblamecommitdiffstats
path: root/roles/website/tasks/main.yml
blob: 79b63acb03977d6bd5c807080ea948f7920743b1 (plain) (tree)





















                                                      

# website ~~ roles/website/tasks/main.yml
# website setup

---

- name: ensure website dir exists
  file:
    path: "/var/www/htdocs/{{ global.domain_name }}"
    owner: www
    group: www
    mode: 0550
    state: directory

- name: generate website configuration
  template:
    src: httpd.conf.j2
    dest: "/etc/httpd.d/{{ global.domain_name }}.conf"
    owner: "{{ user_root }}"
    group: "{{ group_root }}"
    mode: 0644

remember that computers suck.