--- - name: Configure Grafana hosts: localhost tasks: - name: Create netz39 user community.grafana.grafana_user: url: "https://{{ hostvars['pottwal.n39.eu']['grafana_domain_name'] }}" url_username: admin url_password: > "{{ hostvars['pottwal.n39.eu']['grafana_admin_password'] }}" name: "{{ item.name }}" email: "{{ item.email }}" login: "{{ item.login }}" password: "{{ item.password }}" is_admin: true state: present loop: "{{ grafana_users }}"