Project

General

Profile

Statistics
| Branch: | Revision:

duckcorp-infra / ansible / playbooks / tenants / duckcorp / web / vcs.duckcorp.org.yml @ 35a67e9f

History | View | Annotate | Download (602 Bytes)

1
---
2

    
3
- hosts: Toushirou
4
  vars:
5
    website_domain: vcs.duckcorp.org
6
    document_root: "{{ web.root }}/{{ website_domain }}"
7
    data_dir: "{{ inventory_dir }}/data/duckcorp/web/{{ website_domain }}"
8
  tasks:
9
    - name: "Create vhost {{ website_domain }}"
10
      import_role:
11
        name: httpd
12
        tasks_from: vhost
13
      vars:
14
        use_letsencrypt: True
15
        force_tls: True
16

    
17
    - name: "Generate main page for {{ website_domain }}"
18
      template:
19
        src: "{{ data_dir }}/index.html"
20
        dest: "{{ document_root }}/"
21
        owner: root
22
        group: root
23
        mode: 0644
24