--- - name: Converge hosts: all roles: - ansible-role-elasticsearch vars: elasticsearch_heap_size: 512m elasticsearch_index_templates: test: index_patterns: - 'hello*' settings: index: number_of_replicas: 1 mappings: metrics: type: short pre_tasks: - name: update apt cache ansible.builtin.apt: update_cache: true