File tree 3 files changed +5
-11
lines changed 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,4 @@ ssl_stapling_enabled: "{{ item.value.ssl is defined and item.value.ssl.stapling_
20
20
cron_enabled : " {{ site_env.disable_wp_cron and (not item.value.multisite.enabled | default(false) or (item.value.multisite.enabled | default(false) and item.value.multisite.cron | default(true))) }}"
21
21
sites_use_ssl : " {{ wordpress_sites.values() | map(attribute='ssl') | selectattr('enabled') | list | count > 0 }}"
22
22
23
- # For backward compatibility, to be removed in Trellis v2.
24
- site_packagist_org_authentications :
25
- - { hostname: repo.packagist.com, username: token, password: "{{ vault_wordpress_sites[site].packagist_token | default('') }}" }
26
- site_composer_authentications : " {{ vault_wordpress_sites[site].composer_authentications | default([]) }}"
27
- composer_authentications : " {{ site_packagist_org_authentications + site_composer_authentications }}"
23
+ composer_authentications : " {{ vault_wordpress_sites[site].composer_authentications | default([]) }}"
Original file line number Diff line number Diff line change 12
12
- name : Setup composer authentications
13
13
composer :
14
14
command : config
15
- arguments : --auth http-basic.{{ composer_authentication.hostname }} {{ composer_authentication.username }} {{ composer_authentication.password }}
15
+ arguments : --auth http-basic.{{ composer_authentication.hostname | quote }} {{ composer_authentication.username | quote }} {{ composer_authentication.password | default("") | quote }}
16
16
working_dir : " {{ deploy_helper.new_release_path }}"
17
17
no_log : true
18
18
changed_when : false
19
19
when :
20
20
- composer_authentication.hostname is defined and composer_authentication.hostname != ""
21
21
- composer_authentication.username is defined and composer_authentication.username != ""
22
- - composer_authentication.password is defined and composer_authentication.password != ""
23
22
loop : " {{ composer_authentications | default([]) }}"
24
23
loop_control :
25
24
loop_var : composer_authentication
Original file line number Diff line number Diff line change 2
2
- name : " Setup composer authentications - {{ site }}"
3
3
composer :
4
4
command : config
5
- arguments : --auth http-basic.{{ composer_authentication.hostname }} {{ composer_authentication.username }} {{ composer_authentication.password }}
5
+ arguments : --auth http-basic.{{ composer_authentication.hostname | quote }} {{ composer_authentication.username | quote }} {{ composer_authentication.password | default("") | quote }}
6
6
working_dir : " {{ working_dir }}"
7
7
no_log : true
8
8
changed_when : false
9
9
when :
10
- - not (not composer_authentication.hostname)
11
- - not (not composer_authentication.username)
12
- - not (not composer_authentication.password)
10
+ - composer_authentication.hostname is defined and composer_authentication.hostname != ""
11
+ - composer_authentication.username is defined and composer_authentication.username != ""
13
12
loop : " {{ composer_authentications | default([]) }}"
14
13
loop_control :
15
14
loop_var : composer_authentication
You can’t perform that action at this time.
0 commit comments