上QQ阅读APP看书,第一时间看更新
Conditional example
Execute only when the operating system family is Debian:
tasks: - name: "shut down Debian flavored systems" command: /sbin/shutdown -t now when: ansible_os_family == "Debian"
Execute only when the operating system family is Debian:
tasks: - name: "shut down Debian flavored systems" command: /sbin/shutdown -t now when: ansible_os_family == "Debian"