23 lines
565 B
YAML
23 lines
565 B
YAML
- name: Enable proxy modules
|
|
become: true
|
|
apache2_module:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- proxy
|
|
- proxy_http
|
|
notify: Reload apache2 service
|
|
|
|
- name: Copy vHost conf
|
|
become: true
|
|
template:
|
|
src: git.tunuifranken.info.conf.j2
|
|
dest: /etc/apache2/sites-available/git.tunuifranken.info.conf
|
|
notify: Reload apache2 service
|
|
|
|
- name: Activate vHost
|
|
become: true
|
|
command: a2ensite git.tunuifranken.info.conf
|
|
register: result
|
|
changed_when: "'already enabled' not in result.stdout"
|
|
notify: Reload apache2 service
|