self-hosting/roles/apache-2px/tasks/main.yml

22 lines
448 B
YAML
Raw Normal View History

2021-10-31 15:33:14 +01:00
---
2022-03-12 16:35:32 +01:00
- name: Create 2px directory
2022-03-12 16:55:03 +01:00
become: true
2021-10-31 15:33:14 +01:00
file:
path: "{{ dir_2px }}"
owner: "{{ owner_2px }}"
group: "{{ group_2px }}"
2021-10-31 15:33:14 +01:00
state: directory
mode: '0775'
2022-03-12 19:31:54 +01:00
- name: Copy vHost conf
become: true
template:
src: 2px.info.conf.j2
dest: /etc/apache2/sites-available/2px.info.conf
notify: Reload apache2 service
- name: Activate vHost
become: true
command: a2ensite 2px.info.conf
notify: Reload apache2 service