first commit

This commit is contained in:
2021-08-28 23:54:41 +08:00
commit 06f4bf327a
55 changed files with 650 additions and 0 deletions

22
playbooks/python.yml Normal file
View File

@@ -0,0 +1,22 @@
---
- hosts: "{{host}}"
gather_facts: true
vars:
svn_url: "svn://xxxx/xxxx"
remote_path: "/path/to/deploy_dir"
tasks:
- import_role:
name: python
vars:
task: svn
- import_role:
name: python
vars:
task: stop_service
- name: wait 4s before starting service
shell: sleep 4
- import_role:
name: python
vars:
task: start_service