- Learning Ansible 2.7(Third Edition)
- Fabio Alessandro Locati
- 75字
- 2021-06-24 15:08:45
Variables
As we have seen, we can print variable content simply by using the {{ VARIABLE_NAME }} syntax. If we want to print just an element of an array, we can use {{ ARRAY_NAME['KEY'] }}, and if we want to print a property of an object, we can use {{ OBJECT_NAME.PROPERTY_NAME }}.
So, we can improve our previous static page in the following way:
<html> <body> <h1>Hello World!</h1> <p>This page was created on {{ ansible_date_time.date }}.</p> </body> </html>
推薦閱讀
- 同仁眼整形眼眶病診療手冊
- 癌癥療愈錄:腫瘤門診敘事紀(jì)實(shí)
- 介入呼吸內(nèi)鏡并發(fā)癥及處理
- 臨床神經(jīng)遺傳病學(xué)
- 甲狀腺疾病的核醫(yī)學(xué)診斷與治療
- 營養(yǎng)與疾病預(yù)防:醫(yī)護(hù)人員讀本
- 現(xiàn)代口腔正畸技術(shù)與臨床思維(現(xiàn)代實(shí)用口腔醫(yī)學(xué)著譯叢書)
- Mastering Metasploit
- 皮膚美容激光治療原理與技術(shù)
- 會診聯(lián)絡(luò)精神醫(yī)學(xué)
- 骨骼肌靜力性負(fù)荷所致?lián)p傷機(jī)理的研究
- 臨床麻醉難點(diǎn)解析(第2版)
- 拯救孩子視力(第三版)
- 骨科臨床X線檢查手冊
- Learn Data Structures and Algorithms with Golang