hugo daily push 2018-11-27 22:00:01
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
|
||||
<li><a href="/categories/ps">Ps (1)</a></li>
|
||||
|
||||
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (6)</a></li>
|
||||
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (7)</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -122,6 +122,10 @@
|
||||
<strong>Latest posts</strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use 'list' in yaml file </a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a>
|
||||
</li>
|
||||
@@ -146,10 +150,6 @@
|
||||
<a href="/post/enable-synology-public-ssh/">筆記- 啟用群暉NAS (Synology NAS)的SSH Server 透過Publickey 認證免密碼登入</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/gallery/sammy93/">Sammy93</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (6)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (7)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<item>
|
||||
<title>筆記</title>
|
||||
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
|
||||
<pubDate>Thu, 15 Nov 2018 11:06:28 +0800</pubDate>
|
||||
<pubDate>Tue, 27 Nov 2018 16:50:53 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</guid>
|
||||
<description></description>
|
||||
|
||||
@@ -179,6 +179,10 @@
|
||||
<strong>Latest posts</strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use 'list' in yaml file </a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a>
|
||||
</li>
|
||||
@@ -203,10 +207,6 @@
|
||||
<a href="/post/enable-synology-public-ssh/">筆記- 啟用群暉NAS (Synology NAS)的SSH Server 透過Publickey 認證免密碼登入</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/gallery/sammy93/">Sammy93</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (6)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (7)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -90,6 +90,124 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/ansible-selectattr/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/ansible-selectattr/">
|
||||
<img src="/images/post-default-1.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/ansible-selectattr/">[筆記] Ansible how to use 'list' in yaml file </a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2018-11-27</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>這幾天在玩ansible 時,碰到一個問題</p>
|
||||
|
||||
<p>假如我有個yaml檔作為資料來源,檔名是 abc.yml</p>
|
||||
|
||||
<p>大概長這樣</p>
|
||||
|
||||
<pre><code> "teams": [
|
||||
{
|
||||
"chinese_name": "TEAM1",
|
||||
"description": "TEAM1",
|
||||
"gid": 10125,
|
||||
"location": [
|
||||
"hq"
|
||||
],
|
||||
"name": "aa",
|
||||
"users": [
|
||||
"chen",
|
||||
"chou",
|
||||
"huani",
|
||||
"yey",
|
||||
"wa"
|
||||
]
|
||||
},
|
||||
{
|
||||
"chinese_name": "TEAM2",
|
||||
"description": "TEAM2",
|
||||
"gid": 10126,
|
||||
"location": [
|
||||
"hq"
|
||||
],
|
||||
"name": "bb",
|
||||
"users": [
|
||||
"chhiao",
|
||||
"chgc",
|
||||
"chy",
|
||||
"hsi",
|
||||
"li",
|
||||
"li",
|
||||
"chgchi"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/ansible-selectattr/" class="more">Continue reading</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/ansible">ansible</a>
|
||||
|
||||
<a href="/tags/linux">linux</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/change-preferred-language-in-firefox/">
|
||||
@@ -623,6 +741,10 @@
|
||||
<strong>Latest posts</strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use 'list' in yaml file </a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a>
|
||||
</li>
|
||||
@@ -647,10 +769,6 @@
|
||||
<a href="/post/enable-synology-public-ssh/">筆記- 啟用群暉NAS (Synology NAS)的SSH Server 透過Publickey 認證免密碼登入</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/gallery/sammy93/">Sammy93</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -661,7 +779,7 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (6)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (7)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -5,11 +5,65 @@
|
||||
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
|
||||
<description>Recent content in 筆記 on MC部落</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Thu, 15 Nov 2018 11:06:28 +0800</lastBuildDate>
|
||||
<lastBuildDate>Tue, 27 Nov 2018 16:50:53 +0800</lastBuildDate>
|
||||
|
||||
<atom:link href="https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
|
||||
<item>
|
||||
<title>[筆記] Ansible how to use 'list' in yaml file </title>
|
||||
<link>https://h.cowbay.org/post/ansible-selectattr/</link>
|
||||
<pubDate>Tue, 27 Nov 2018 16:50:53 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/post/ansible-selectattr/</guid>
|
||||
<description><p>這幾天在玩ansible 時,碰到一個問題</p>
|
||||
|
||||
<p>假如我有個yaml檔作為資料來源,檔名是 abc.yml</p>
|
||||
|
||||
<p>大概長這樣</p>
|
||||
|
||||
<pre><code> &quot;teams&quot;: [
|
||||
{
|
||||
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
|
||||
&quot;description&quot;: &quot;TEAM1&quot;,
|
||||
&quot;gid&quot;: 10125,
|
||||
&quot;location&quot;: [
|
||||
&quot;hq&quot;
|
||||
],
|
||||
&quot;name&quot;: &quot;aa&quot;,
|
||||
&quot;users&quot;: [
|
||||
&quot;chen&quot;,
|
||||
&quot;chou&quot;,
|
||||
&quot;huani&quot;,
|
||||
&quot;yey&quot;,
|
||||
&quot;wa&quot;
|
||||
]
|
||||
},
|
||||
{
|
||||
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
|
||||
&quot;description&quot;: &quot;TEAM2&quot;,
|
||||
&quot;gid&quot;: 10126,
|
||||
&quot;location&quot;: [
|
||||
&quot;hq&quot;
|
||||
],
|
||||
&quot;name&quot;: &quot;bb&quot;,
|
||||
&quot;users&quot;: [
|
||||
&quot;chhiao&quot;,
|
||||
&quot;chgc&quot;,
|
||||
&quot;chy&quot;,
|
||||
&quot;hsi&quot;,
|
||||
&quot;li&quot;,
|
||||
&quot;li&quot;,
|
||||
&quot;chgchi&quot;
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p></p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</title>
|
||||
<link>https://h.cowbay.org/post/change-preferred-language-in-firefox/</link>
|
||||
|
||||
Reference in New Issue
Block a user