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

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>
主站蜘蛛池模板: 买车| 房山区| 红安县| 牡丹江市| 个旧市| 晋中市| 泽州县| 徐州市| 屯留县| 平泉县| 松江区| 北票市| 大连市| 景泰县| 阜康市| 五指山市| 南涧| 团风县| 都匀市| 景德镇市| 红桥区| 青冈县| 纳雍县| 司法| 尼玛县| 昂仁县| 东光县| 泰来县| 宝兴县| 新津县| 保山市| 石阡县| 富阳市| 太仆寺旗| 彭水| 宜黄县| 义马市| 阜宁县| 宽城| 荣昌县| 昭觉县|