Skip to content

Commit

Permalink
Create NODE_TEST_DIR Ubuntu 16.04 and 16.10 (#785)
Browse files Browse the repository at this point in the history
This PR tries to adapt the previous #658 to the new ansible structure
that we adopted recently.

Basically it adds an extra step for Ubuntu 16.04 and 16.10 to create
the tmp directory used in NODE_TEST_DIR variable.
  • Loading branch information
piccoloaiutante authored and gibfahn committed Sep 11, 2017
1 parent 6fbad37 commit 82d95d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ansible/roles/jenkins-worker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
state: present
line: ::1 localhost.localdomain localhost

- name: create NODE_TEST_DIR directory
file: path=/home/{{ server_user }}/tmp state=directory

- name: set NODE_TEST_DIR permission and owner
file:
path: /home/{{ server_user }}/tmp
owner: "{{ server_user }}"
group: "{{ server_user }}"
mode: 0755

- name: prepare installing tap2junit
when: type != "release"
include: "{{ pip_include }}"
Expand Down

0 comments on commit 82d95d4

Please sign in to comment.