@ -61,16 +61,18 @@ options:
required : true
required : true
default : " present "
default : " present "
choices : [ " present " , " absent " , " update " , " replace " ]
choices : [ " present " , " absent " , " update " , " replace " ]
password:
url_ password:
description :
description :
- The HTTP Basic Auth password for the API I ( endpoint ) . This should be set
- The HTTP Basic Auth password for the API I ( endpoint ) . This should be set
unless using the C ( ' insecure ' ) option .
unless using the C ( ' insecure ' ) option .
default : null
default : null
username :
aliases : [ " password " ]
url_username :
description :
description :
- The HTTP Basic Auth username for the API I ( endpoint ) . This should be set
- The HTTP Basic Auth username for the API I ( endpoint ) . This should be set
unless using the C ( ' insecure ' ) option .
unless using the C ( ' insecure ' ) option .
default : " admin "
default : " admin "
aliases : [ " username " ]
insecure :
insecure :
description :
description :
- " Reverts the connection to using HTTP instead of HTTPS. This option should
- " Reverts the connection to using HTTP instead of HTTPS. This option should
@ -92,8 +94,8 @@ EXAMPLES = '''
- name : Create a kubernetes namespace
- name : Create a kubernetes namespace
kubernetes :
kubernetes :
api_endpoint : 123.45 .67 .89
api_endpoint : 123.45 .67 .89
u sername: admin
u rl_u sername: admin
password: redacted
url_ password: redacted
inline_data :
inline_data :
kind : Namespace
kind : Namespace
apiVersion : v1
apiVersion : v1
@ -111,8 +113,8 @@ EXAMPLES = '''
- name : Create a kubernetes namespace
- name : Create a kubernetes namespace
kubernetes :
kubernetes :
api_endpoint : 123.45 .67 .89
api_endpoint : 123.45 .67 .89
u sername: admin
u rl_u sername: admin
password: redacted
url_ password: redacted
file_reference : / path / to / create_namespace . yaml
file_reference : / path / to / create_namespace . yaml
state : present
state : present
@ -306,8 +308,8 @@ def main():
argument_spec = dict (
argument_spec = dict (
http_agent = dict ( default = USER_AGENT ) ,
http_agent = dict ( default = USER_AGENT ) ,
u sername= dict ( default = " admin " ) ,
u rl_u sername= dict ( default = " admin " , aliases = [ " username " ] ) ,
password= dict ( default = " " , no_log = True ) ,
url_ password= dict ( default = " " , no_log = True , aliases = [ " password " ] ) ,
force_basic_auth = dict ( default = " yes " ) ,
force_basic_auth = dict ( default = " yes " ) ,
validate_certs = dict ( default = False , type = ' bool ' ) ,
validate_certs = dict ( default = False , type = ' bool ' ) ,
certificate_authority_data = dict ( required = False ) ,
certificate_authority_data = dict ( required = False ) ,
@ -317,7 +319,9 @@ def main():
inline_data = dict ( required = False ) ,
inline_data = dict ( required = False ) ,
state = dict ( default = " present " , choices = [ " present " , " absent " , " update " , " replace " ] )
state = dict ( default = " present " , choices = [ " present " , " absent " , " update " , " replace " ] )
) ,
) ,
mutually_exclusive = ( ( ' file_reference ' , ' inline_data ' ) , ( ' username ' , ' insecure ' ) , ( ' password ' , ' insecure ' ) ) ,
mutually_exclusive = ( ( ' file_reference ' , ' inline_data ' ) ,
( ' url_username ' , ' insecure ' ) ,
( ' url_password ' , ' insecure ' ) ) ,
required_one_of = ( ( ' file_reference ' , ' inline_data ' ) , ) ,
required_one_of = ( ( ' file_reference ' , ' inline_data ' ) , ) ,
)
)