Giter VIP home page Giter VIP logo

ansible-flask-stack's People

Contributors

hypebeast avatar nicgirault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-flask-stack's Issues

Error during repository clone

I get the error:

TASK [ansible-flask-stack : Checkout the latest source code] ***************************************************************************************************************************
fatal: [production]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin '' /opt/decision", "failed": true, "msg": "fatal: destination path '/opt/decision' already exists and is not an empty directory.", "rc": 128, "stderr": "fatal: destination path '/opt/decision' already exists and is not an empty directory.\n", "stderr_lines": ["fatal: destination path '/opt/decision' already exists and is not an empty directory."], "stdout": "", "stdout_lines": []}

This is due to the fact that in supervisor.yml https://github.com/hypebeast/ansible-flask-stack/blob/c6dd725d869a6f3d15ed19b2cd33e460bb7de7a0/tasks/supervisor.yml, the directory is created.
It might be due to Ansible upgrade? I'm using Ansible 2.3

My proposition would be to move the starter script somewhere else. Do you have an idea where? Somewhere in /etc/supervisor?

Installation

Hi,
I am new to ansible. The ansible-galaxy role was specified incorrectly in the readme. It should be flaskapp, not ansible-flaskapp. The installation command is therefore:

ansible-galaxy install hypebeast.flaskapp

ansible-flask-stack usage

How do you use the stack, when manually included in a project, to deploy an application to a VPS?

Tags not filtering

You misunderstand the use of tags (it's very confusing). As explained here: http://docs.ansible.com/ansible/latest/playbooks_tags.html You can **ONLY** filter tasks based on tags from the command line with –tags or –skip-tags. Adding “tags:” in any part of a play (including roles) adds those tags to the contained tasks.

To fix this problem I removed the tags from my playbook and I run:

ansible-playbook playbook.yml -i staging --tags "flaskapp-deploy"

which is not the same than:

- name: Playbook
  hosts: all
  remote_user: ubuntu
  become: yes
  vars_files:
    - ./vars.yml
  roles:
    - {role: ansible-flask-stack, tags: ["flaskapp-deploy"]}

Running w/ ansible 2.4 and default config...

TASK [flask-stack : Run pre hooks] **********************************************************************************************************************************************************************************************************************
 [WARNING]: could not parse environment value, skipping: ['flaskapp_app_environment']

failed: [ec2-13-55-18-20.ap-southeast-2.compute.amazonaws.com] (item=flaskapp_app_pre_hooks) => {"changed": false, "cmd": "flaskapp_app_pre_hooks", "item": "flaskapp_app_pre_hooks", "msg": "[Errno 2] No such file or directory", "rc": 2}

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.