romach
4/23/2017 - 6:42 PM

Run task by condition

Run task by condition

- hosts: all
  tasks:
    - name: "Shutdown Debian"
      command: /sbin/shutdown -t now
      when: ansible_os_family == "Debian"