- become: yes package: name: "{{ items }}" state: present vars: items: - prometheus-bird-exporter - name: /etc/default/prometheus-bird-exporter become: yes copy: dest: /etc/default/prometheus-bird-exporter content: | # Set the command-line arguments to pass to the server. # Due to shell escaping, to pass backslashes for regexes, you need to double # them (\\d for \d). If running under systemd, you need to double them again # (\\\\d to mean \d), and escape newlines too. ARGS="-bird.v2 -format.new" notify: restart