Clarify usage of env_file (#42211). (#44535)

This commit is contained in:
Felix Fontein 2018-08-23 08:16:48 +02:00 committed by ansibot
parent b1f915b28b
commit c8ee383783

View file

@ -98,7 +98,7 @@ options:
env_file: env_file:
version_added: "2.2" version_added: "2.2"
description: 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. - If variable also present in C(env), then C(env) value will override.
entrypoint: entrypoint:
description: description:
@ -574,6 +574,12 @@ EXAMPLES = '''
name: sleepy name: sleepy
purge_networks: yes 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 - name: Create a container with limited capabilities
docker_container: docker_container:
name: sleepy name: sleepy