ovv / ansible-role-wallabag Goto Github PK
View Code? Open in Web Editor NEWAnsible role to install and configure wallabag
Ansible role to install and configure wallabag
If I may, here is a little change request: replace command
module:
- name: permissions # noqa 302
command: >
chown -R wallabag:wallabag
/opt/wallabag/web
/opt/wallabag/var
/opt/wallabag/bin
/opt/wallabag/app/config
/opt/wallabag/vendor
/opt/wallabag/data
when: wallabag_download is changed
By file
module (using variable wallabag_dir
for changing installation path /opt/wallabag
and wallabag_user
for using web server user like www-data
):
- name: Set permissions
become: yes
file:
path: '{{wallabag_dir}}/{{item}}'
state: directory
owner: '{{wallabag_user}}'
group: '{{wallabag_user}}'
recurse: yes
with_items:
- web
- var
- bin
- app/config
- vendor
- data
And for idempotency, we have to change owner after download:
- name: Set permissions for use console
become: yes
file:
path: '{{wallabag_dir}}/'
state: directory
owner: '{{ansible_user}}'
group: '{{ansible_user}}'
recurse: yes
Hello, I'm trying to use your role to install Wallabag in a new Debian Buster server, but I got the following error in stdout:
"Loading composer repositories with package information",
"Installing dependencies (including require-dev) from lock file",
"Package operations: 130 installs, 0 updates, 0 removals",
(... I remove useless installation lines ...)
"Generating optimized autoload files",
"> Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Script Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache handling the post-cmd event terminated with an exception",
"",
" ",
" [RuntimeException] ",
" An error occurred when executing the \"'cache:clear --no-warmup'\" command: ",
" ",
" ",
" ",
" ",
" ",
" [Symfony\\Component\\Debug\\Exception\\ContextErrorException] ",
" Warning: \"continue\" targeting switch is equivalent to \"break\". Did you mean ",
" to use \"continue 2\"? ",
" ",
Using PHP-FPM 7.3.11-1~deb10u1.
I tried to suppress error reporting in /etc/php/7.3/cli/php.ini with :
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING
error_reporting = 0
But I still have this blocking warning (blocking only for Ansible, warning are not blocking if I do make install on ssh).
Any idea?
NB: I know that is not your work causing this issue (https://wiki.php.net/rfc/continue_on_switch_deprecation), but maybe you or @wallabag have a workaround...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.