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

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>
主站蜘蛛池模板: 宜兰县| 确山县| 扬州市| 浦东新区| 庆云县| 仁布县| 台山市| 屯留县| 双柏县| 高雄县| 静安区| 罗山县| 遵义市| 罗甸县| 手游| 乌拉特中旗| 桂阳县| 蓬溪县| 翁源县| 扬中市| 女性| 甘孜| 隆子县| 通城县| 杨浦区| 岳普湖县| 库车县| 剑川县| 来安县| 奇台县| 沙河市| 名山县| 连平县| 右玉县| 兖州市| 左权县| 乐至县| 卢龙县| 黎川县| 平昌县| 聂荣县|