Skip to content
Snippets Groups Projects
Commit 2d28913a authored by jurgenhaas's avatar jurgenhaas
Browse files

Write auth.json also for root user who doesn't know composer home

parent 2d846e70
No related branches found
No related tags found
No related merge requests found
---
- name: Configure github oauth token
- name: "Ensure Composer Home for root"
file:
path='/root/.composer'
state='directory'
- name: "Configure github oauth token"
template:
src: ".composer/auth.json.j2"
dest: "{{ composer_home_path }}/auth.json"
dest: "{{ item }}/auth.json"
with_items:
- '/root/.composer'
- '{{ composer_home_path }}'
when: composer_github_oauth != false or composer_http_basic != false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment