我有两个变量:a,b.
a
b
我想c根据以下内容为变量赋值:a或b包含更大的数值.
c
这就是我试过的:
- set_fact: c: "test1" when: a <= b - set_fact: c: "test2" when: b <= a
像它总是将c到test1没有test2.
test1
test2
ansible
ansible ×1