-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(composer): COMPOSER_HOME setup * chore(composer): set default lephare_composer_home to ~/.config/composer Co-authored-by: Thibaut Selingue <[email protected]> * doc(readme): set default composer 2 config path * doc(readme): set default Composer 2 config path Co-authored-by: Thibaut Selingue <[email protected]> --------- Co-authored-by: Thibaut Selingue <[email protected]>
- Loading branch information
1 parent
31b8327
commit 9b8e6d8
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
- name: LEPHARE | COMPOSER | Ensure configuration directory exists | ||
file: | ||
path: "{{ composer_facts.home }}" | ||
state: directory | ||
recurse: yes | ||
mode: 0755 | ||
register: composer_home_directory | ||
- name: Add lephare_composer_home directory to current user $PATH. | ||
ansible.builtin.lineinfile: | ||
path: ~/.profile | ||
line: 'export COMPOSER_HOME={{ lephare_composer_home }}' | ||
create: true | ||
backup: true | ||
|
||
- name: LEPHARE | COMPOSER | Setup private registry | ||
template: | ||
src: composer/auth.json.j2 | ||
dest: "{{ composer_home_directory.path }}/auth.json" | ||
dest: "{{ lephare_composer_home }}/auth.json" | ||
mode: 0600 | ||
when: lephare_packagist_com_token is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters