Skip to content

daftcode/python_deployment_on_wheels_ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXAMPLE Python WHEEL Deployemnt Playbook

Ansible Playbook example of test_app deployment

  1. Clone this repo
  2. Edit hosts and variables
  3. Run desired play

Ansible play run command template: ansible-playbook -i hostsfile .yml --vault-password-file ./pass

This play was writtent as an example for Ansible Python web apps deployment on wheels article by me (webster58). Play alone is useless without an app wchich is not provided at this stage, but the idea of Wheel deployment is for You to use.

examples

TEST_APP Full Deployment:

ansible-playbook -i production_hosts test_app.yml --vault-password-file ./pass

TEST_APP Tagged Config Deployemnt:

ansible-playbook -i production_hosts test_app.yml --vault-password-file ./pass -t config

TEST_APP Different branch Deployment:

ansible-playbook -i production_hosts test_app.yml --vault-password-file ./pass --extra-vars "app_git_branch=stage"

TEST_APP Stageing Deployment:

ansible-playbook -i stage_hosts test_app.yml --vault-password-file ./pass -t app --extra-vars "app_git_branch=stage"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published