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

9 views
Skip to first unread message

bibhu

unread,
Nov 15, 2017, 1:20:00 PM11/15/17
to Ansible Project
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

Fabian B.

unread,
Nov 15, 2017, 7:29:25 PM11/15/17
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages