hugo daily push 2018-11-27 22:00:01

This commit is contained in:
2018-11-27 22:00:02 +08:00
parent 0c2f130df5
commit 68264ee494
46 changed files with 2217 additions and 174 deletions

View File

@@ -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 &#39;list&#39; 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>

View File

@@ -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>

View File

@@ -179,6 +179,10 @@
<strong>Latest posts</strong>
<ul>
<li>
<a href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; 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>

View File

@@ -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 &#39;list&#39; 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> &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>
<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 &#39;list&#39; 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>

View File

@@ -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 &#39;list&#39; 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>&lt;p&gt;這幾天在玩ansible 時,碰到一個問題&lt;/p&gt;
&lt;p&gt;假如我有個yaml檔作為資料來源檔名是 abc.yml&lt;/p&gt;
&lt;p&gt;大概長這樣&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; &amp;quot;teams&amp;quot;: [
{
&amp;quot;chinese_name&amp;quot;: &amp;quot;TEAM1&amp;quot;,
&amp;quot;description&amp;quot;: &amp;quot;TEAM1&amp;quot;,
&amp;quot;gid&amp;quot;: 10125,
&amp;quot;location&amp;quot;: [
&amp;quot;hq&amp;quot;
],
&amp;quot;name&amp;quot;: &amp;quot;aa&amp;quot;,
&amp;quot;users&amp;quot;: [
&amp;quot;chen&amp;quot;,
&amp;quot;chou&amp;quot;,
&amp;quot;huani&amp;quot;,
&amp;quot;yey&amp;quot;,
&amp;quot;wa&amp;quot;
]
},
{
&amp;quot;chinese_name&amp;quot;: &amp;quot;TEAM2&amp;quot;,
&amp;quot;description&amp;quot;: &amp;quot;TEAM2&amp;quot;,
&amp;quot;gid&amp;quot;: 10126,
&amp;quot;location&amp;quot;: [
&amp;quot;hq&amp;quot;
],
&amp;quot;name&amp;quot;: &amp;quot;bb&amp;quot;,
&amp;quot;users&amp;quot;: [
&amp;quot;chhiao&amp;quot;,
&amp;quot;chgc&amp;quot;,
&amp;quot;chy&amp;quot;,
&amp;quot;hsi&amp;quot;,
&amp;quot;li&amp;quot;,
&amp;quot;li&amp;quot;,
&amp;quot;chgchi&amp;quot;
]
}
]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;</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>