generated from sebclem/ansible-role-template
Init
This commit is contained in:
parent
793f2305bb
commit
5c1a3ea6ef
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -5,5 +5,6 @@
|
||||
"*.yml": "ansible"
|
||||
},
|
||||
"ansible.ansible.useFullyQualifiedCollectionNames": true,
|
||||
"editor.formatOnSave": true
|
||||
"editor.formatOnSave": true,
|
||||
"ansible.python.interpreterPath": "/root/.virtualenvs/ansible/bin/python"
|
||||
}
|
||||
|
@ -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
9
tasks/install-deps.yml
Normal 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
7
tasks/install.yml
Normal 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"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user