git://git.halfball.org
/
ansiblebook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f03a3f2
)
image-facts
author
Lorin Hochstein
<lhochstein@netflix.com>
Sun, 5 Feb 2017 21:35:58 +0000
(13:35 -0800)
committer
Lorin Hochstein
<lhochstein@netflix.com>
Sun, 5 Feb 2017 21:35:58 +0000
(13:35 -0800)
ch13/image-facts.yml
[new file with mode: 0644]
patch
|
blob
diff --git a/ch13/image-facts.yml
b/ch13/image-facts.yml
new file mode 100644
(file)
index 0000000..
d346211
--- /dev/null
+++ b/
ch13/image-facts.yml
@@ -0,0
+1,13
@@
+---
+- name: get exposed ports and volumes
+ hosts: localhost
+ gather_facts: False
+ vars:
+ image: ghost
+ tasks:
+ - name: get image info
+ docker_image_facts: name=ghost
+ register: ghost
+ - debug:
+ msg: "Ports: {{ ghost.images[0].Config.ExposedPorts}}"
+