diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index a62757bb38..20ad63ca0a 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -100,6 +100,12 @@ options: - List of custom DNS search domains. default: null required: false + domainname: + description: + - Container domainname. + default: null + required: false + version_added: "2.5" env: description: - Dictionary of key,value pairs. @@ -731,6 +737,7 @@ class TaskParameters(DockerBaseClass): self.dns_servers = None self.dns_opts = None self.dns_search_domains = None + self.domainname = None self.env = None self.env_file = None self.entrypoint = None @@ -877,6 +884,7 @@ class TaskParameters(DockerBaseClass): ''' create_params = dict( command='command', + domainname='domainname', hostname='hostname', user='user', detach='detach', @@ -1297,6 +1305,7 @@ class Container(DockerBaseClass): config_mapping = dict( auto_remove=host_config.get('AutoRemove'), expected_cmd=config.get('Cmd'), + domainname=config.get('Domainname'), hostname=config.get('Hostname'), user=config.get('User'), detach=detach, @@ -2060,6 +2069,7 @@ def main(): dns_servers=dict(type='list'), dns_opts=dict(type='list'), dns_search_domains=dict(type='list'), + domainname=dict(type='str'), env=dict(type='dict'), env_file=dict(type='path'), entrypoint=dict(type='list'),