self-hosting/roles/gitea/tasks/apache2.yml

26 lines
642 B
YAML
Raw Normal View History

2022-06-25 14:48:38 +02:00
---
2022-04-09 12:12:43 +02:00
- name: Enable proxy modules
become: true
2022-12-16 20:12:49 +01:00
community.general.apache2_module:
2022-04-09 12:12:43 +02:00
name: "{{ item }}"
state: present
with_items:
- proxy
- proxy_http
notify: Reload apache2 service
- name: Copy vHost conf
become: true
2022-12-16 20:12:49 +01:00
ansible.builtin.template:
2022-12-26 07:22:21 +01:00
src: apache2/git.tunuifranken.info.conf.j2
2022-04-09 12:12:43 +02:00
dest: /etc/apache2/sites-available/git.tunuifranken.info.conf
2022-06-25 14:48:38 +02:00
mode: 0644
2022-04-09 12:12:43 +02:00
notify: Reload apache2 service
- name: Activate vHost
become: true
2022-12-16 20:12:49 +01:00
ansible.builtin.command: a2ensite git.tunuifranken.info.conf
2022-04-09 12:12:43 +02:00
register: result
changed_when: "'already enabled' not in result.stdout"
notify: Reload apache2 service