Skip to content

Commit

Permalink
[CE-434]create a work directory automatically
Browse files Browse the repository at this point in the history
a work directory gets created when normal flow is use,
however, in some case, only a selected playbook is run
in that case, the work directory also needs to be
created to ensure the process is working correctly. this
patch fixes the problem.

Change-Id: Ic439612c77265a65269c2eec0e6585240e465906
Signed-off-by: Tong Li <litong01@us.ibm.com>
  • Loading branch information
Tong Li committed Aug 23, 2018
1 parent b014faf commit a791098
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/agent/ansible/roles/deploy_compose/getbin/tasks/apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
set_fact:
fabricpath: "{{ pjroot }}/vars/{{ env }}"

- name: Make sure that working directory exists
file:
path: "{{ pjroot }}/vars/{{ env }}/run"
state: "directory"
mode: 0775

- stat:
path: "{{ fabricpath }}/bin/cryptogen"
register: binexists
Expand Down

0 comments on commit a791098

Please sign in to comment.