26 lines
735 B
YAML
26 lines
735 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
tasks:
|
|
|
|
- name: "Test yum_config repo"
|
|
tripleo.repos.yum_config:
|
|
type: repo
|
|
name: appstream
|
|
enabled: true
|
|
tags:
|
|
# TODO: fix yum_config to correctly report changed state and uncomment
|
|
# the line below which disables molecule idemptotence test.
|
|
- molecule-idempotence-notest
|
|
when: ansible_distribution_major_version is version(8, '>=')
|
|
|
|
- name: "Check get_hash"
|
|
tripleo.repos.get_hash:
|
|
release: master
|
|
- name: "Check get_hash with invalid url"
|
|
tripleo.repos.get_hash:
|
|
release: master
|
|
dlrn_url: 'https://httpbin.org/status/404'
|
|
register: result
|
|
failed_when: result is success
|