This commit is contained in:
SebClem 2023-07-21 13:21:16 +02:00
parent 793f2305bb
commit 5c1a3ea6ef
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
5 changed files with 41 additions and 2 deletions

View File

@ -5,5 +5,6 @@
"*.yml": "ansible"
},
"ansible.ansible.useFullyQualifiedCollectionNames": true,
"editor.formatOnSave": true
"editor.formatOnSave": true,
"ansible.python.interpreterPath": "/root/.virtualenvs/ansible/bin/python"
}

View File

@ -1,2 +1,3 @@
---
# defaults file for ${REPO_NAME_TITLE}
# defaults file for Dolibarr
dolibarr_version: 17.0.1

9
tasks/install-deps.yml Normal file
View File

@ -0,0 +1,9 @@
- name: "Install php deps"
ansible.builtin.apt:
name: "{{ dolibarr_php_dependencies }}"
update_cache: true
- name: "Install apache deps"
ansible.builtin.apt:
name: "{{ dolibarr_apache_dependencies }}"
update_cache: true

7
tasks/install.yml Normal file
View File

@ -0,0 +1,7 @@
- name: Download and unzip dolibarr
ansible.builtin.unarchive:
remote_src: true
src: "{{ dolibarr_dowload_url }}"
dest: "/var/www/html"
owner: "www-data"
group: "www-data"

View File

@ -1,2 +1,23 @@
---
# vars file for Ansible-Dolibarr-Role
dolibarr_php_dependencies:
- php
- php-cli
- php-mysql
- php-common
- php-zip
- php-mbstring
- php-xmlrpc
- php-curl
- php-soap
- php-gd
- php-xml
- php-intl
- php-ldap
- php-imap
dolibarr_apache_dependencies:
- apache2
- libapache2-mod-php
dolibarr_dowload_url: https://github.com/Dolibarr/dolibarr/archive/refs/tags/{{ dolibarr_version }}.tar.gz