degrade.zookeeper.yml 749 Bytes
---
#  change zookeeper value for degrade
- hosts: "zookeeper"
  remote_user: root
  vars_prompt:
    - name: "degrade"
      prompt: "Degrade: [true]. No Degrade:[false]"
      private: no
      default: "false"
  tasks:
    - name: change zookeeper value
      shell: "sh /Data/local/zookeeper-3.4.7/bin/zkCli.sh  set  /yh/config/{{item}} {{degrade}}"
      with_items: 
        - gateway.degrade.users.getIsNeedAddWechatCS.enable
        - gateway.degrade.users.inboxTotal.enable
        - gateway.degrade.users.myIndex.enable
        - gateway.degrade.product.consult.enable
        - order.degrade.shopping.checkIsBlackUser.enable
        - gateway.degrade.sns.getRecentShareOrder.enable
        - brower.degrade.favorite.isFavoriteNew.enable