Skip to content

Commit

Permalink
fix #658 仅非容器化运行ansible需要安装
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Sep 8, 2019
1 parent d7b0212 commit ae9060a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
file: src={{ base_dir }}/tools/easzctl dest=/usr/bin/easzctl state=link

# ansible 控制端一些易用性配置
# 注册变量以判断是否容器化运行ansible控制端,如果容器化运行那么进程数小于20
# 注册变量以判断是否容器化运行ansible控制端,如果容器化运行那么进程数小于50
- name: 注册变量以判断是否容器化运行ansible控制端
shell: "ps aux|wc -l"
register: procs
Expand Down Expand Up @@ -135,3 +135,5 @@
- name: pip install netaddr
pip:
name: netaddr
when: "procs.stdout|int > 50"
ignore_errors: true

0 comments on commit ae9060a

Please sign in to comment.