File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ subdomains:
1414# tls certificate details
1515tls:
1616 country: JO
17- # default to domain name if empty
1817 organization: example.org
1918 state: Amman
2019 locale: Amman
Original file line number Diff line number Diff line change 22
33- hosts : webservers
44 tasks :
5- - name : install/upgrade openssl
5+ - name : install/upgrade openssl (apt)
66 apt :
77 name : openssl
88 state : latest
99 when : enable_tls and ansible_pkg_mgr == 'apt'
1010
11- - name : install/upgrade openssl
11+ - name : install/upgrade openssl (yum)
1212 yum :
1313 name : openssl
1414 state : latest
4545 openssl req -new
4646 -key "{{ item.invocation.module_args.path | dirname }}/key.new"
4747 -out "{{ item.invocation.module_args.path | dirname }}/csr.new"
48- -subj '/C={{ tls.country }}/ST={{ tls.state }}/L={{ tls.locale }}/CN={{ tls.organization | default( item.invocation.module_args.path | dirname | basename ) }}'
48+ -subj '/C={{ tls.country }}/ST={{ tls.state }}/L={{ tls.locale }}/CN={{ item.invocation.module_args.path | dirname | basename }}'
4949 args :
5050 creates : " {{ item.invocation.module_args.path | dirname }}/csr.new"
5151 loop : " {{ crts.results }}"
You can’t perform that action at this time.
0 commit comments