@@ -507,25 +507,14 @@ class ModuleDocFragment(object):
507507                    required = False ,
508508                    default = 30 ),
509509}
510+ 
510511# Connection arguments which are mutually exclusive. 
511512connection_spec_mutually_exclusive  =  [['mode' , 'console' ],
512513                                      ['port' , 'console' ],
513514                                      ['baud' , 'console' ],
514515                                      ['attempts' ,'console' ],
515516                                      ['cs_user' , 'console' ],
516517                                      ['cs_passwd' , 'console' ]]
517- # Keys are connection options. Values are a list of task_vars to use as the 
518- # default value. Order of values specified against each key represents the 
519- # preference order of options in the key. Has to be maintained consistent with 
520- # ansible core modules 
521- connection_spec_fallbacks  =  {
522-     'host' : ['ansible_host' , 'inventory_hostname' ],
523-     'user' : ['ansible_connection_user' , 'ansible_ssh_user' , 'ansible_user' ],
524-     'passwd' : ['ansible_ssh_pass' , 'ansible_pass' ],
525-     'port' : ['ansible_ssh_port' , 'ansible_port' ],
526-     'ssh_private_key_file' : ['ansible_ssh_private_key_file' ,
527-                              'ansible_private_key_file' ]
528- }
529518
530519# Specify the provider spec with options matching connection_spec. 
531520provider_spec  =  {
@@ -1888,5 +1877,3 @@ def save_text_output(self, name, format, text):
18881877            except  IOError :
18891878                self .fail_json (msg = "Unable to save output. Failed to " 
18901879                                   "open the %s file."  %  (file_path ))
1891- 
1892- 
0 commit comments