Remove Web Application Proxy Server From Cluster May 2026

- name: Gracefully remove WAP node from cluster hosts: wap_removal_target become: yes tasks: - name: Stop web application proxy service service: name: W3SVC state: stopped ignore_errors: yes - name: Remove server from load balancer pool via API (F5 example) uri: url: "https://lb-manager/mgmt/tm/ltm/pool/wap_pool/members" method: DELETE body: '"name":" ansible_default_ipv4.address :443"' headers: Authorization: "Bearer f5_token " delegate_to: localhost

Use the socket CLI to set the server state to maint (maintenance): remove web application proxy server from cluster

Reload NGINX gracefully: nginx -s reload . Existing persistent connections will finish; new ones bypass it. - name: Gracefully remove WAP node from cluster

Edit /etc/nginx/conf.d/upstreams.conf and remove the server line for the target IP. remove web application proxy server from cluster