Skip to content

Commit

Permalink
Merge pull request #20 from igormukhingmailcom/issue-19
Browse files Browse the repository at this point in the history
Fix Issue #19
  • Loading branch information
kosssi committed May 7, 2015
2 parents 4b95ecf + 80b94b5 commit c1b0554
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---

- name: Create composer home path
file: path={{ composer_home_path }} state=directory owner={{ composer_home_owner }} group={{ composer_home_group }}
when: composer_home_path is defined
file: path={{ composer_home_path|default('~/.composer') }} state=directory owner={{ composer_home_owner }} group={{ composer_home_group }}

- name: Configure composer home path
copy: dest=/etc/profile.d/composer-home.sh mode=0755
Expand Down
2 changes: 1 addition & 1 deletion tasks/oauth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
- name: Configure github oauth token
template:
src: ".composer/auth.json.j2"
dest: "~/.composer/auth.json"
dest: "{{ composer_home_path|default('~/.composer') }}/auth.json"
when: composer_github_oauth != false
2 changes: 2 additions & 0 deletions tests/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

- hosts: all
sudo: true
vars:
composer_github_oauth: f03401aae1e276abb073f987c08a32410f462e73
roles:
- { role: common, tags: apt }
- { role: ../../ansible-role-composer, tags: composer }

0 comments on commit c1b0554

Please sign in to comment.