degrade.zookeeper.yml 920 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
        - brower.degrade.favorite.isFavoriteNew.enable
        - search.perfomance.degrade.personalized
        - gateway.degrade.bigdata.recommend.shopcart.default.enable
        - gateway.degrade.brower.ufoFavoriteTotal.enable
        - gateway.degrade.brower.myIndexProFav.enable