--- - name: Remove Elasticsearch repository (and clean up left-over metadata) yum_repository: name: elastic_repo state: absent changed_when: false