---
  - name: Enable syslog communication to sensor
    lineinfile:
      dest: "/etc/rsyslog.d/50-default.conf"
      line: "*.* @{{alienvault_usm_anywhere_sensor_ip}}:514"
      state: present
    become: true

  - name: Restart rsyslog
    service:
      name: rsyslog
      enabled: yes
      state: restarted

---
  - name: Enable syslog communication to sensor
    lineinfile:
      dest: "/etc/rsyslog.d/50-default.conf"
      line: "*.* @{{alienvault_usm_anywhere_sensor_ip}}:514"
      state: present
    become: true
    tags:
      - alienvault

  - name: Restart rsyslog
    service:
      name: rsyslog
      enabled: yes
      state: restarted
    become: true
    tags:
      - alienvault

Add 'alienvault' tag to alienvault tasks
Add 'alienvault' tag to alienvault tasks
