0
我嘗試獲取可靠的事實,並不明白如何正確編寫過濾器。我需要得到2個事實 - ansible_lsb和ansible_hostname。例如:在安裝程序劇本中篩選
ansible 192.168.250.* -m setup -a 'filter=ansible_(hostname|lsb)'
但它不起作用。需要幫助,如何顯示一些事實?謝謝
我嘗試獲取可靠的事實,並不明白如何正確編寫過濾器。我需要得到2個事實 - ansible_lsb和ansible_hostname。例如:在安裝程序劇本中篩選
ansible 192.168.250.* -m setup -a 'filter=ansible_(hostname|lsb)'
但它不起作用。需要幫助,如何顯示一些事實?謝謝