ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
!
Öª¤Ã¤Æ¤ë¤È±ãÀû¤Ê¥ª¥×¥·¥ç¥ó
ansible-playbook useful options
ÈôɽʷÀÉ (WAKAYAMA Shirou)
¥Ä¥­¥Î¥ïÖêʽ»áÉç / Tsukinowa Inc.
¤ª¤Þ¤¨¤À¤ì¤è£¿ / Who are you?
? Èôɽ Ê·ÀÉ(@r_rudi) / ¥Ä¥­¥Î¥ïÖêʽ»áÉç
? golang, python, iOS, Android?
Web app, MQTT, Ansible
? Author of ¡¸ÈëéTAnsible¡¹
? in the Amazon Japan
¡ªverbose (-v)
? Increase verbose level
? -v, -vv, -vvv, -vvvv, -vvvvv(v*5), -vvvvvv(v*6)
? v*6 is only in winrm (currently)
? vvv, vvvv shows ssh connection
? Many ansible trouble is related to ssh. ?
Try -vvvv ?rst!
¡ªlist-hosts, ¡ªlist-tasks, --list-tags
? ¡ªlist-tasks
!
!
? ¡ªlist-tags (1.9-)
Tips: where can we put tags?
Tag for play
Multiple tags
Name for play
Include
Role
Tips: special tags (1.9-)
? always
? always run
? tagged
? untagged
? can be speci?ed with -t
--syntax-check
? Very helpful error message
? Useful for CI (like jenkins or CircleCI)
--start-at-task
? ¡°Task failed. I wanna restart from HERE!!! ¡°
? ¡ªstart-at-task=¡°<taskname>¡±
-e @vars.json
? -e set additional variables from command
line
? -e "version=1.23.45 other_variable=foo"
? @vars.json or @vars.yml
? load variables from speci?ed JSON/YAML

More Related Content

ansible-playbook useful command line options