generated from sebclem/ansible-role-template
Compare commits
2 Commits
e641f84b3e
...
a167d225f0
Author | SHA1 | Date | |
---|---|---|---|
a167d225f0 | |||
a080fe5f1f |
@ -1,2 +1,7 @@
|
||||
---
|
||||
# handlers file for Ansible-Dolibarr-Role
|
||||
|
||||
- name: Restart Apache
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
|
@ -15,25 +15,31 @@
|
||||
group: "www-data"
|
||||
extra_opts:
|
||||
- --strip-components=1
|
||||
notify: Restart Apache
|
||||
|
||||
- name: Enable apache modules
|
||||
community.general.apache2_module:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ dolibarr_apache_modules }}"
|
||||
notify: Restart Apache
|
||||
|
||||
- name: Add dolibarr apache site
|
||||
ansible.builtin.template:
|
||||
src: dolibarr.conf.j2
|
||||
dest: /etc/apache2/sites-available/dolibarr.conf
|
||||
mode: "644"
|
||||
notify: Restart Apache
|
||||
|
||||
- name: Disable default site
|
||||
ansible.builtin.file:
|
||||
path: "/etc/apache2/sites-enabled/000-default.conf"
|
||||
state: absent
|
||||
notify: Restart Apache
|
||||
|
||||
- name: Enable dolibarr site
|
||||
ansible.builtin.file:
|
||||
path: "/etc/apache2/sites-enabled/dolibarr"
|
||||
path: "/etc/apache2/sites-enabled/dolibarr.conf"
|
||||
src: "/etc/apache2/sites-available/dolibarr.conf"
|
||||
state: link
|
||||
notify: Restart Apache
|
||||
|
Loading…
Reference in New Issue
Block a user