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