Take a look at this already available role -
https://github.com/vitalk/ansible-flaskapp. You might want to change as per
your environment.

On Tue, Sep 8, 2020 at 11:13 AM Sudheer Satyanarayana <
[email protected]> wrote:

>
>
>
> How to deploy python-flask application using ansible?
>
> There are many ways to do it. First you have to define the steps. Then use
> Ansible to carry out those steps or tasks.
>
> Here's how I do it. I have written a generic role to deploy Flask apps. I
> have a playbook that executes the role.
>
> 1. Check out the Git repository to a source directory
>
> 2. Copy the source files to destination directory
>
> 3. Update/install Python packages in the virtual environment
>
> 4. Run DB migrations
>
> 5. Run some CLI commands
>
> 6. Restart systemd units
>
>
> --
>
> Sudheer Satyanarayana
> Gavika Information Technologies Pvt. Ltd.
> Mobile: 99005 07499http://www.gavika.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/684fec9b-7c19-b9dc-038f-a3450bfe984e%40techchorus.net
> <https://groups.google.com/d/msgid/ansible-project/684fec9b-7c19-b9dc-038f-a3450bfe984e%40techchorus.net?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHrxmJenVbUWqUbR8nRE4c9XcJCPgGVS7m%2B4%2B4igv_qEoA%40mail.gmail.com.

Reply via email to