mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
25 lines
699 B
YAML
25 lines
699 B
YAML
#!/usr/bin/env ansible-playbook
|
|
|
|
# Run script with ansible-playbook deploydev.yml
|
|
# or ./deploydev.yml
|
|
|
|
- name: Configure webserver with apache
|
|
hosts: webservers
|
|
sudo: True
|
|
tasks:
|
|
- name: install apache
|
|
apt: name=apache update_cache=yes
|
|
- name: copy apache config file
|
|
copy: src=files/apachealias.conf dest=/etc/apache/conf.d/dolibarr_dev
|
|
#- name: enable configuration
|
|
# file: >
|
|
# dest=/etc/apache/sites-enabled/default
|
|
# src=/etc/apache/sites-available/default
|
|
# state=link
|
|
- name: copy info.html
|
|
template: src=templates/info.html.j2 dest=/var/www/dolibarr_dev/info.html
|
|
mode=0644
|
|
- name: restart apache
|
|
service: name=apache state=restarted
|
|
|