官术网_书友最值得收藏!

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>
主站蜘蛛池模板: 凤凰县| 靖边县| 木里| 霍山县| 安丘市| 商丘市| 延寿县| 灵山县| 北流市| 扬中市| 高台县| 扶绥县| 缙云县| 分宜县| 洮南市| 台中县| 双峰县| 赣州市| 永平县| 安阳市| 三原县| 盐津县| 南康市| 韶关市| 会泽县| 连江县| 平顶山市| 布尔津县| 建阳市| 高要市| 广安市| 西丰县| 磐安县| 孝感市| 筠连县| 涟源市| 海晏县| 海兴县| 新巴尔虎右旗| 若羌县| 乐亭县|