Skip to content

Commit

Permalink
feat: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Jun 11, 2024
1 parent 5f24f5f commit e9cdc5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ docker_run_copy: []

# Run Docker Containers
docker_run_containers: []

# Container defaults
docker_run_defaults: {}
4 changes: 2 additions & 2 deletions tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
links: "{{ item.links|default(omit) }}"
name: "{{ item.name|default(item) }}"
network_mode: "{{ item.network_mode|default(omit) }}"
networks: "{{ item.networks|default(omit) }}"
networks: "{{ item.networks|default(docker_run_defaults.networks)|default(omit) }}"
ports: "{{ item.ports|default(omit) }}"
pull: "{{ item.pull|default(true) }}"
recreate: "{{ item.recreate|default(omit) }}"
restart: "{{ item.restart|default(omit) }}"
restart_policy: "{{ item.restart_policy|default(omit) }}"
restart_policy: "{{ item.restart_policy|default(docker_run_defaults.restart_policy)|default(omit) }}"
state: "{{ item.state|default(omit) }}"
timeout: "{{ item.timeout|default(omit) }}"
tty: "{{ item.tty|default(omit) }}"
Expand Down

0 comments on commit e9cdc5d

Please sign in to comment.