Commit 5e624ace by Will Daly

Updated python egg cache permissions

Removed .bash_profile and .bashrc config
parent 05dc40b2
...@@ -39,7 +39,7 @@ else ...@@ -39,7 +39,7 @@ else
# Create python egg cache and set correct permissions # Create python egg cache and set correct permissions
PYTHON_EGG_CACHE=$HOME/.python-eggs PYTHON_EGG_CACHE=$HOME/.python-eggs
mkdir -p $PYTHON_EGG_CACHE mkdir -p $PYTHON_EGG_CACHE
chmod 600 $PYTHON_EGG_CACHE chmod 700 -R $PYTHON_EGG_CACHE
# Create and activate the virtualenv # Create and activate the virtualenv
echo "No virtualenv found; creating it..." echo "No virtualenv found; creating it..."
......
...@@ -56,32 +56,6 @@ ...@@ -56,32 +56,6 @@
- unzip - unzip
- xml-twig-tools - xml-twig-tools
- name: jenkins | Configure environment variables - name: jenkins | Add script to set up environment variables
template: src=jenkins_env.sh.j2 dest=/usr/local/bin/jenkins_env.sh template: src=jenkins_env.sh.j2 dest=/usr/local/bin/jenkins_env.sh
owner=root group=root mode=0555 owner=root group=root mode=0555
- name: jenkins | ensure .bash_profile exists
shell: touch {{ jenkins_user_home }}/.bash_profile
sudo_user: "{{ jenkins_user }}"
- name: jenkins | ensure .bashrc exists
shell: touch {{ jenkins_user_home }}/.bashrc
sudo_user: "{{ jenkins_user }}"
- name: jenkins | Configure bashrc
lineinfile: dest={{ jenkins_user_home }}/.bashrc
regexp="source /usr/local/bin/jenkins_env.sh"
line="source /usr/local/bin/jenkins_env.sh"
# Ensure that code executed by the worker can't be
# installed to execute on login.
- name: Set permissions on .bash_profile
file: path="{{ jenkins_user_home }}/.bash_profile" state=file
owner="{{ jenkins_user }}" group="{{ jenkins_group }}"
mode=0500
- name: Set permissions on .bashrc
file: path="{{ jenkins_user_home }}/.bashrc" state=file
owner="{{ jenkins_user }}" group="{{ jenkins_group }}"
mode=0500
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment