ansible剧本:将参数传递为start_time = 10:00:00 UTC

时间:2018-11-16 20:12:50

标签: ansible

如何将此类值作为参数传递

--extra-vars "start_time = 10:00:00 UTC End_time = 12:00:00 UTC"

1 个答案:

答案 0 :(得分:0)

您可以重复-e--extra_vars)几次,每个新变量一次。

-e "start_time=10:00:00 UTC"  -e "End_time=12:00:00 UTC"