- CheckMates
- :
- Products
- :
- Developers
- :
- Ansible
- :
- Re: Ansible Checkpoint Run Script Module - Change ...
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ansible Checkpoint Run Script Module - Change Directory
Hello,
Is it possible to change the directory from the current working directory when using the check_point.mgmt.cp_mgmt_run_script module?
I'm running some python scripts directly on the management server and the cpapi folder from the Checkpoint Python SDK needs to reside in the same folder the script resides in.
There is an 'args' parameter for this module but I'm not sure if chdir is an option as it is when using the ansible.builtin.script module.
https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_run_script_module.html
Regards,
Simon
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I presume the script itself could set the working directory.
Not sure if you can do it as part of the run-script call itself.
