- name: update package cache package: update_cache: yes when: "'handler' not in ansible_skip_tags" - name: restart telegraf service: name: telegraf state: restarted when: "'handler' not in ansible_skip_tags"