Skip to content

Commit

Permalink
[collection] Create 'meta/runtime.yml' file
Browse files Browse the repository at this point in the history
This file is required by Ansible Galaxy to properly import the
collection.

(cherry picked from commit e9eeb0f)
(cherry picked from commit e0f2de4)
  • Loading branch information
drybjed committed Jun 27, 2021
1 parent e8e494f commit bdcd9f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ansible-galaxy/make-collection
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,13 @@ for collection in "${collections[@]}" ; do
fi
done

# Create meta/runtime.yml metadata file
mkdir "${workdir_map[${collection}]}/meta"
cat <<EOF > "${workdir_map[${collection}]}/meta/runtime.yml"
---
requires_ansible: ">=2.10"
EOF

# Convert Ansible plugin use to Ansible Collection format
for plugin in task_src template_src parse_kv_config parse_kv_items etc_aliases_parse_recipients ; do

Expand Down

0 comments on commit bdcd9f1

Please sign in to comment.