---
- name: Install syslog-ng
  action: apt pkg=syslog-ng state=installed

---
- name: Install syslog-ng
  action: apt pkg={{ item }} state=installed
  with_items:
    - syslog-ng-core
    - syslog-ng

Install syslog-ng-core before syslog-ng to work around a dependency resolution bug in Ubuntu
Install syslog-ng-core before syslog-ng to work around a dependency resolution bug in Ubuntu
