Skip to content

Commit b08dedf

Browse files
set ansible interpreter on uf
1 parent c5c45d4 commit b08dedf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

uf/common-files/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ RUN sed -i -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL\nans
105105
&& chgrp ${ANSIBLE_GROUP} ${SPLUNK_ANSIBLE_HOME} ${SPLUNK_ANSIBLE_HOME}/ansible.cfg \
106106
&& chmod 775 ${SPLUNK_ANSIBLE_HOME} \
107107
&& chmod 664 ${SPLUNK_ANSIBLE_HOME}/ansible.cfg \
108+
&& sed -i '/^\[defaults\]/a\interpreter_python = /usr/bin/python3' ${SPLUNK_ANSIBLE_HOME}/ansible.cfg \
108109
&& chmod 755 /sbin/entrypoint.sh /sbin/createdefaults.py /sbin/checkstate.sh
109110

110111
USER ${ANSIBLE_USER}

0 commit comments

Comments
 (0)