Giter VIP home page Giter VIP logo

ansible-role-wallabag's People

Contributors

ovv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

swipswaps

ansible-role-wallabag's Issues

Replace command by file module (chown)

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

Install php dependencies failed

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 :

  • first try: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING
  • then: 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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.