ansible-community / ansible.content_builder

A collection to scaffold Ansible plugins.
GNU General Public License v3.0
31 stars 27 forks source link

convert refresh_ignore_files.py to action plugin #42

Closed mandar242 closed 1 year ago

mandar242 commented 1 year ago
SUMMARY

Converts refresh_ignore_files.py script used for cloud content generation to an action plugin.

Builds on top of #40, probably should be merged only after #40 is merged.

ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION

file(s) changed for this PR are main.yaml generate_cloud_ignore_files.py

Tested and verified using below playbook ansible-playbook build.yaml -e manifest_file=MANIFEST.yaml


# build.yaml
---
- hosts: localhost
  gather_facts: yes
  roles:
    - ansible.content_builder.run

# manifest.yaml
---
collection:
  path: /path/to/amazon/cloud/
  namespace: amazon
  name: cloud
plugins:
  - type: module_openapi
    name: "amazon_cloud"
    content: cloud
    module_version: 1.0.0
    api_object_path: '/path/to/api_specifications/amazon_cloud/'
    resource: '/path/to/modules.yaml/'
    action: generate_all
    unique_key: ""
    rm_swagger_json: ""
    version: "1.0.0"
    author: ""
GomathiselviS commented 1 year ago

Can you please remove the python file from the filter plugin folder?

GomathiselviS commented 1 year ago

Can you please remove the python file from the filter plugin folder?

@mandar242 Sorry for the confusion. I meant this file - https://github.com/ansible-community/ansible.content_builder/blob/cloud_content/roles/module_openapi_cloud/templates/refresh_ignore_files.py

GomathiselviS commented 1 year ago

recheck

GomathiselviS commented 1 year ago

recheck