如果服务已经安装,如何停止剧本?
我在尝试:
- hosts: windows
tasks:
- name: check services
win_service:
name: serviceName
register: service_info
when: service_info.exists
谢谢你!
答案1
下一个任务:
- meta: end_play
when: service_info is not changed