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