From c8ee38378389dd6402e1292573fbe2c9862c4688 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 23 Aug 2018 08:16:48 +0200 Subject: [PATCH] Clarify usage of env_file (#42211). (#44535) --- lib/ansible/modules/cloud/docker/docker_container.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index 3c51c88904..b9d199ee32 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -98,7 +98,7 @@ options: env_file: version_added: "2.2" description: - - Path to a file containing environment variables I(FOO=BAR). + - Path to a file, present on the target, containing environment variables I(FOO=BAR). - If variable also present in C(env), then C(env) value will override. entrypoint: description: @@ -574,6 +574,12 @@ EXAMPLES = ''' name: sleepy purge_networks: yes +- name: Start a container and use an env file + docker_container: + name: agent + image: jenkinsci/ssh-slave + env_file: /var/tmp/jenkins/agent.env + - name: Create a container with limited capabilities docker_container: name: sleepy