--- - name: Converge become: yes hosts: all vars: - collectd_network_server: testvagrant - collectd_network_server: 192.168.2.240 - collectd_network_port: 25826 pre_tasks: - name: Update apt cache apt: update_cache: yes - name: set hostname hostname: name: vagrantcollectd tasks: - name: "Include collectd" include_role: name: "collectd"