Commit 09f6d1d4 by 刘旋尧

init

parents
[test]
120.26.213.52 ansible_connection=ssh ansible_user=root
[online]
121.40.155.140 ansible_connection=ssh ansible_user=root
121.40.157.172 ansible_connection=ssh ansible_user=root
\ No newline at end of file
---
- name: 执行hook
hosts: test
become: yes
vars_files:
- vars/test.yml
roles:
- { role: git }
\ No newline at end of file
---
- name: 更新到指定版本
command: "git checkout {{ commit }}"
args:
chdir: "{{ projects[project].dir }}"
\ No newline at end of file
120.26.213.52
120.26.213.52
---
- name: 执行hook
hosts: test
become: yes
vars_files:
- vars/test.yml
roles:
- { role: git }
\ No newline at end of file
---
projects:
yidianling:
dir: /var/www/yidianling
yidianling_new:
dir: /var/www/yidianling_new
ydl:
dir: /var/www/ydl
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment