[ci-workers] Handle user home directories outside /home

This commit is contained in:
Jack Grigg
2017-10-20 13:37:46 +13:00
parent c9c2650456
commit 8bdabdb37e
2 changed files with 14 additions and 5 deletions

View File

@@ -101,6 +101,15 @@
shell: /bin/bash
state: present
- name: Get absolute path to Buildbot worker home directory
command: echo ~
register: homedir
become_user: "{{ buildbot_worker_user }}"
- name: Save absolute path to Buildbot worker home directory
set_fact:
buildbot_worker_dir: "{{ homedir.stdout }}"
- name: Install required Python modules
pip:
name: "{{ item }}"