File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -430,8 +430,7 @@ def task_plugin_inventory
430430 def config
431431 { 'modulepath' => File . join ( __dir__ , '../fixtures/apply' ) ,
432432 'winrm' => {
433- 'ssl' => false ,
434- 'ssl-verify' => false ,
433+ 'cacert' => File . join ( __dir__ , '../fixtures/ssl/ca.pem' ) ,
435434 'user' => conn_info ( 'winrm' ) [ :user ] ,
436435 'password' => conn_info ( 'winrm' ) [ :password ]
437436 } }
Original file line number Diff line number Diff line change 1414 let ( :uri ) { conn_uri ( 'winrm' ) }
1515 let ( :password ) { conn_info ( 'winrm' ) [ :password ] }
1616 let ( :user ) { conn_info ( 'winrm' ) [ :user ] }
17+ let ( :cacert ) { File . join ( __dir__ , '../fixtures/ssl/ca.pem' ) }
1718
1819 context 'when using CLI options' do
1920 let ( :config_flags ) {
20- %W[ --targets #{ uri } --no-ssl --no-ssl-verify --format json --modulepath #{ modulepath }
21+ %W[ --targets #{ uri } --cacert #{ cacert } --format json --modulepath #{ modulepath }
2122 --password #{ password } ]
2223 }
2324
9394 'winrm' => {
9495 'user' => user ,
9596 'password' => password ,
96- 'ssl' => false ,
97- 'ssl-verify' => false
97+ 'cacert' => cacert
9898 }
9999 }
100100 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def conn_info(transport)
1919 when 'ssh'
2020 default_port = 20022
2121 when 'winrm'
22- default_port = 25985
22+ default_port = 25986
2323 when 'docker'
2424 default_user = ''
2525 default_password = ''
You can’t perform that action at this time.
0 commit comments