實例學習ansible系列(14)playbook變量使用

ansible的playbook中的變量引用使用{{ }}。同時本文也會給出實例確認如何使用環境變量下降Hardcoding的耦合。Ansbile還內嵌了七個頗有用的變量,使用得當也會帶來很大的便利。web hostvars變量 groups變量 group_names變量 inventory_hostname變量 inventory_hostname_short inventory_dir in
相關文章
相關標籤/搜索