Verify that .yaml files are discovered as well

This commit is contained in:
Johannes Hahn 2024-02-12 21:50:48 +01:00 committed by Daniel Wozniak
parent 1207030427
commit 995d4175c0
2 changed files with 8 additions and 0 deletions

View file

@ -198,6 +198,9 @@ def test_ansible_discover_playbooks_single_path():
assert ret[playbooks_dir]["playbook1.yml"] == {
"fullpath": os.path.join(playbooks_dir, "playbook1.yml")
}
assert ret[playbooks_dir]["playbook1.yaml"] == {
"fullpath": os.path.join(playbooks_dir, "playbook1.yaml")
}
assert ret[playbooks_dir]["example-playbook2/site.yml"] == {
"fullpath": os.path.join(playbooks_dir, "example-playbook2/site.yml"),
"custom_inventory": os.path.join(playbooks_dir, "example-playbook2/hosts"),

View file

@ -0,0 +1,5 @@
---
- hosts: all
gather_facts: false
tasks:
- ping: