mirror of https://github.com/ansible/ansible.git
Fix pb subs collapse (#74301)
* fix subdir parsing for plays fixes #74283 Co-authored-by: Nikolaos Kakouros <nkak@kth.se>pull/74411/head
parent
a3e7cf0110
commit
6418f368e3
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- playbook loaded from collection subdir now does not ignore subdirs.
|
@ -0,0 +1,4 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- set_fact: play='tldr'
|
@ -0,0 +1,4 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- set_fact: play_type='in type subdir'
|
@ -0,0 +1,4 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- set_fact: play_type_subtype='in subtype subdir'
|
@ -1,2 +1,17 @@
|
||||
- import_playbook: testns.testcoll.default_collection_playbook.yml
|
||||
- import_playbook: testns.testcoll.default_collection_playbook
|
||||
|
||||
# test subdirs
|
||||
- import_playbook: "testns.testcoll.play"
|
||||
- import_playbook: "testns.testcoll.type.play"
|
||||
- import_playbook: "testns.testcoll.type.subtype.play"
|
||||
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: check values from imports
|
||||
assert:
|
||||
that:
|
||||
- play is defined
|
||||
- play_type is defined
|
||||
- play_type_subtype is defined
|
||||
|
Loading…
Reference in New Issue