1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Support domainname in docker_containers (#32292)

This commit is contained in:
Michael 2018-01-23 14:24:37 +00:00 committed by Adam Miller
parent 30ed29ed46
commit 75130b4a4d

View file

@ -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'),