hypebeast / ansible-flask-stack Goto Github PK
View Code? Open in Web Editor NEWAnsible role to setup and deploy Flask applications.
License: MIT License
Ansible role to setup and deploy Flask applications.
License: MIT License
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?
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
How do you use the stack, when manually included in a project, to deploy an application to a VPS?
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"]}
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}
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.