parent
b1f915b28b
commit
c8ee383783
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue