How to use Ansible to Replace or override the path in a Linux file

Hi ,

Impala-shell script is there under /usr/bin/ in 50 machines . I want to replace or override PYTHON_EGG_CACHE= /tmp/impala-shell-python-egg-cache-${USER} TO PYTHON_EGG_CACHE=/var/tmp/impala-shell-python-egg-cache-${USER} using Ansible . could you please suggest

Thanks and Regards

Bibhu

Hey Bibhu,

Have you tried using the line-in-file module to set that within your script or setting it in your application server’s conf file. From there you should be able to restart your application or server and have the changes take effect.