55- name : Retrieve current channel information
66 command : peer channel getinfo -c {{ channel.name }}
77 environment :
8- CORE_PEER_ADDRESS : " {{ ibp[peer.id].hostname }}:{{ ibp[peer.id].port }}"
9- CORE_PEER_MSPCONFIGPATH : " {{ member.wallet }}/{{ member.msp.admin.identity }}"
10- CORE_PEER_LOCALMSPID : " {{ member.msp.id }}"
11- CORE_PEER_TLS_ENABLED : " {{ 'true' if peer.tls.enabled else 'false' }}"
12- CORE_PEER_TLS_ROOTCERT_FILE : " {{ ibp[peer.id].pem if ibp[peer.id].pem is defined }}"
8+ FABRIC_CFG_PATH : " {{ role_path }}/files/sampleconfig"
9+ CORE_PEER_ADDRESS : " {{ ibp[peer.id].hostname }}:{{ ibp[peer.id].port }}"
10+ CORE_PEER_MSPCONFIGPATH : " {{ member.wallet }}/{{ member.msp.admin.identity }}"
11+ CORE_PEER_LOCALMSPID : " {{ member.msp.id }}"
12+ CORE_PEER_TLS_ENABLED : " {{ 'true' if peer.tls.enabled else 'false' }}"
13+ CORE_PEER_TLS_ROOTCERT_FILE : " {{ ibp[peer.id].pem if ibp[peer.id].pem is defined }}"
1314 register : channel_getinfo
1415 failed_when : False
1516 changed_when : False
2122- name : Join peer to channel
2223 command : peer channel join -b {{ tempdir.path }}/config_block.pb
2324 environment :
24- CORE_PEER_ADDRESS : " {{ ibp[peer.id].hostname }}:{{ ibp[peer.id].port }}"
25- CORE_PEER_MSPCONFIGPATH : " {{ member.wallet }}/{{ member.msp.admin.identity }}"
26- CORE_PEER_LOCALMSPID : " {{ member.msp.id }}"
27- CORE_PEER_TLS_ENABLED : " {{ 'true' if peer.tls.enabled else 'false' }}"
28- CORE_PEER_TLS_ROOTCERT_FILE : " {{ ibp[peer.id].pem if ibp[peer.id].pem is defined }}"
25+ FABRIC_CFG_PATH : " {{ role_path }}/files/sampleconfig"
26+ CORE_PEER_ADDRESS : " {{ ibp[peer.id].hostname }}:{{ ibp[peer.id].port }}"
27+ CORE_PEER_MSPCONFIGPATH : " {{ member.wallet }}/{{ member.msp.admin.identity }}"
28+ CORE_PEER_LOCALMSPID : " {{ member.msp.id }}"
29+ CORE_PEER_TLS_ENABLED : " {{ 'true' if peer.tls.enabled else 'false' }}"
30+ CORE_PEER_TLS_ROOTCERT_FILE : " {{ ibp[peer.id].pem if ibp[peer.id].pem is defined }}"
2931 when : not joined_channel
0 commit comments