![Security Automation with Ansible 2](https://wfqqreader-1252317822.image.myqcloud.com/cover/409/36700409/b_36700409.jpg)
上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"