update php and version and add update task #8
3 changed files with 18 additions and 6 deletions
|
@ -1,9 +1,11 @@
|
|||
---
|
||||
|
||||
akaunting_update: 'false' # Set it to true if you want to update akaunting version
|
||||
|
||||
akaunting_user: 'www-data'
|
||||
akaunting_group: 'www-data'
|
||||
akaunting_app_dir: '/var/www/akaunting'
|
||||
akaunting_version: '3.0.11'
|
||||
akaunting_version: '3.0.16'
|
||||
|
||||
akaunting_db_driver: 'mysql'
|
||||
akaunting_db_name: 'akaunting'
|
||||
|
@ -20,7 +22,7 @@ akaunting_admin_passwd: 'changeme'
|
|||
akaunting_pkgs: '{{ php_pkgs }}'
|
||||
|
||||
#PHP Vars
|
||||
php_version: '7.3'
|
||||
php_version: '8.1'
|
||||
php_etc_path: '/etc/php'
|
||||
install_php: 'true'
|
||||
pool_listen: '/var/run/php/php{{ php_version }}-fpm.sock'
|
||||
|
@ -28,13 +30,13 @@ pool_listen: '/var/run/php/php{{ php_version }}-fpm.sock'
|
|||
php_pkgs:
|
||||
- php{{ php_version }}-common
|
||||
- php{{ php_version }}-bcmath
|
||||
- php{{ php_version }}-json
|
||||
# - php{{ php_version }}-json
|
||||
- php{{ php_version }}-mbstring
|
||||
- php{{ php_version }}-tokenizer
|
||||
- php{{ php_version }}-xml
|
||||
- php{{ php_version }}-tokenizer # provided by common?
|
||||
- php{{ php_version }}-xml # provides php-dom
|
||||
- php{{ php_version }}-zip
|
||||
- openssl
|
||||
- php{{ php_version }}-fpm # mandatory?
|
||||
- php{{ php_version }}-fpm # provides php-json
|
||||
- php{{ php_version }}-mysql
|
||||
- php{{ php_version }}-imagick
|
||||
- php{{ php_version }}-gd
|
||||
|
|
|
@ -5,3 +5,6 @@
|
|||
|
||||
- name: Include install app
|
||||
include_tasks: installapp.yml
|
||||
|
||||
- name: Include update app
|
||||
include_tasks: update.yml
|
7
tasks/update.yml
Normal file
7
tasks/update.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
- name: '[Update] - Update akaunting'
|
||||
shell: "php {{ akaunting_app_dir }}/artisan update:all"
|
||||
become: yes
|
||||
become_user: "{{ akaunting_user }}"
|
||||
when: akaunting_update == true
|
Loading…
Reference in a new issue