Authored by root

删除多余参数

... ... @@ -2,7 +2,6 @@
- hosts: java-gateway
serial: "50%"
vars:
service: 'yoho-gateway'
deploy_path: 'yoho-gateway'
remote_user: root
become: true
... ... @@ -13,12 +12,11 @@
msg: "{{ restart_services }}"
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-message
serial: "50%"
vars:
service: 'yoho-message'
deploy_path: 'yoho-message'
remote_user: root
become: true
... ... @@ -27,12 +25,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-sns
serial: "50%"
vars:
service: 'yoho-sns'
deploy_path: 'yoho-sns'
remote_user: root
become: true
... ... @@ -41,13 +38,12 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-users
serial: "50%"
vars:
service: 'yoho-users'
deploy_path: 'yoho-users'
remote_user: root
become: true
... ... @@ -56,12 +52,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-social
serial: "50%"
vars:
service: 'yoho-social'
deploy_path: 'yoho-social'
remote_user: root
become: true
... ... @@ -70,13 +65,12 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
# yohobuy services
- hosts: java-activity
serial: "50%"
vars:
service: 'yohobuy-activity'
deploy_path: 'yohobuy-activity'
remote_user: root
become: true
... ... @@ -85,12 +79,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-bigdata
serial: "50%"
vars:
service: 'yohobuy-bigdata'
deploy_path: 'yohobuy-bigdata'
remote_user: root
become: true
... ... @@ -99,12 +92,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-brower
serial: "50%"
vars:
service: 'yohobuy-brower'
deploy_path: 'yohobuy-brower'
remote_user: root
become: true
... ... @@ -113,12 +105,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-order
serial: "50%"
vars:
service: 'yohobuy-order'
deploy_path: 'yohobuy-order'
remote_user: root
become: true
... ... @@ -127,12 +118,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-product
serial: "50%"
vars:
service: 'yohobuy-product'
deploy_path: 'yohobuy-product'
remote_user: root
become: true
... ... @@ -141,12 +131,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-promotion
serial: "50%"
vars:
service: 'yohobuy-promotion'
deploy_path: 'yohobuy-promotion'
remote_user: root
become: true
... ... @@ -155,12 +144,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-resources
serial: "50%"
vars:
service: 'yohobuy-resources'
deploy_path: 'yohobuy-resources'
remote_user: root
become: true
... ... @@ -169,12 +157,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-risk
serial: "50%"
vars:
service: 'yohobuy-risk'
deploy_path: 'yohobuy-risk'
remote_user: root
become: true
... ... @@ -183,12 +170,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-union
serial: "50%"
vars:
service: 'yohobuy-union'
deploy_path: 'yohobuy-union'
remote_user: root
become: true
... ... @@ -197,12 +183,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-wechat
serial: "50%"
vars:
service: 'yohobuy-wechat'
deploy_path: 'yohobuy-wechat'
remote_user: root
become: true
... ... @@ -211,13 +196,12 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
# uniq services
- hosts: java-uic
serial: "50%"
vars:
service: 'uic'
deploy_path: 'uic'
remote_user: root
become: true
... ... @@ -226,12 +210,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: java-platform-cms
serial: "50%"
vars:
service: 'platform-cms'
deploy_path: 'platform-cms'
remote_user: root
become: true
... ... @@ -240,13 +223,12 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
# special services
- hosts: java-erpgateway
serial: "50%"
vars:
service: 'erpgateway'
deploy_path: 'yoho-erp-gateway'
remote_user: root
become: true
... ... @@ -255,13 +237,12 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: ('erpgateway' in restart_services)
# ufo services
- hosts: ufo-fore
- hosts: java-ufo-fore
serial: "50%"
vars:
service: 'yohoufo-fore'
deploy_path: 'yohoufo-fore'
remote_user: root
become: true
... ... @@ -270,12 +251,11 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
- hosts: ufo-platform
- hosts: java-ufo-platform
serial: "50%"
vars:
service: 'ufo-platform'
deploy_path: 'ufo-platform'
remote_user: root
become: true
... ... @@ -284,4 +264,4 @@
tasks:
- import_role:
name: java.restart
when: service in restart_services
when: deploy_path in restart_services
... ...