Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Simon_Macpherso
Advisor

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

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

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.

0 Kudos
Upcoming Events

    CheckMates Events