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

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:
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