hugo daily push 2019-07-23 22:00:01
This commit is contained in:
@@ -90,6 +90,83 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/ansible-run-task-depends-on-ipaddr/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">
|
||||
<img src="/images/post-default-7.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-07-23</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="categories">
|
||||
|
||||
<a href="/categories/ansible">ansible</a>
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>因為工作上的需要,要修改client端的 /etc/environment 檔案</p>
|
||||
|
||||
<p>在有權限使用proxy 服務的user的環境中,加入proxy 的設定</p>
|
||||
|
||||
<p>原本的清單中,有host/user/ip 這幾個值可以拿來判斷</p>
|
||||
|
||||
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p>
|
||||
|
||||
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer">
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
<div class="links">
|
||||
|
||||
<a href="/tags/ansible">ansible</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/ansible-selectattr-from-list-in-dictionary/">
|
||||
@@ -797,66 +874,6 @@
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/command_to_test_main_ssl/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/command_to_test_main_ssl/">
|
||||
<img src="/images/post-default-10.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-03-20</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>今天老闆出國,發slack說手機不能寄信,看了一下,似乎是因為用GMAIL的APP來收信</p>
|
||||
|
||||
<p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了… WTF ….</p>
|
||||
|
||||
<p>然後,這問題應該很久了,結果現在才在講 ….</p>
|
||||
|
||||
|
||||
<a href="/post/command_to_test_main_ssl/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer no-tags">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
@@ -887,6 +904,10 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
|
||||
</li>
|
||||
@@ -911,10 +932,6 @@
|
||||
<a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -929,7 +946,7 @@
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (1)</a>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -5,11 +5,26 @@
|
||||
<link>https://h.cowbay.org/author/eric-chang/</link>
|
||||
<description>Recent content in Eric Chang on MCの飄狂山莊㊣</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Mon, 01 Jul 2019 09:06:12 +0800</lastBuildDate>
|
||||
<lastBuildDate>Tue, 23 Jul 2019 15:06:37 +0800</lastBuildDate>
|
||||
|
||||
<atom:link href="https://h.cowbay.org/author/eric-chang/index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
|
||||
<item>
|
||||
<title>[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</title>
|
||||
<link>https://h.cowbay.org/post/ansible-run-task-depends-on-ipaddr/</link>
|
||||
<pubDate>Tue, 23 Jul 2019 15:06:37 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/post/ansible-run-task-depends-on-ipaddr/</guid>
|
||||
<description><p>因為工作上的需要,要修改client端的 /etc/environment 檔案</p>
|
||||
|
||||
<p>在有權限使用proxy 服務的user的環境中,加入proxy 的設定</p>
|
||||
|
||||
<p>原本的清單中,有host/user/ip 這幾個值可以拿來判斷</p>
|
||||
|
||||
<p>proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment</p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</title>
|
||||
<link>https://h.cowbay.org/post/ansible-selectattr-from-list-in-dictionary/</link>
|
||||
|
||||
@@ -90,6 +90,66 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/command_to_test_main_ssl/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/command_to_test_main_ssl/">
|
||||
<img src="/images/post-default-10.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-03-20</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<p>今天老闆出國,發slack說手機不能寄信,看了一下,似乎是因為用GMAIL的APP來收信</p>
|
||||
|
||||
<p>然後google 不知道跟人家改了什麼,結果不接受原本的認證了… WTF ….</p>
|
||||
|
||||
<p>然後,這問題應該很久了,結果現在才在講 ….</p>
|
||||
|
||||
|
||||
<a href="/post/command_to_test_main_ssl/" class="more"></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer no-tags">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/install-timeshift-on-ubuntu1804/">
|
||||
@@ -817,124 +877,6 @@
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<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"></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>
|
||||
@@ -967,6 +909,10 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
|
||||
</li>
|
||||
@@ -991,10 +937,6 @@
|
||||
<a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1009,7 +951,7 @@
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (1)</a>
|
||||
<a href="/categories/ansible">Ansible (2)</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"></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/">
|
||||
@@ -693,6 +811,10 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
|
||||
</li>
|
||||
@@ -717,10 +839,6 @@
|
||||
<a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -735,7 +853,7 @@
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (1)</a>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<hr>
|
||||
<ul id="all-categories">
|
||||
|
||||
<li><a href="/author/eric-chang">Eric chang (27)</a></li>
|
||||
<li><a href="/author/eric-chang">Eric chang (28)</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -120,6 +120,10 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-run-task-depends-on-ipaddr/">[ansible] 用 ip 位置判斷是否要執行task /ansible run task depends on ipaddr</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/ansible-selectattr-from-list-in-dictionary/">[ansible] 引用事先定義好的yaml檔裡面的變數 - Ansible Selectattr From List in Dictionary file</a>
|
||||
</li>
|
||||
@@ -144,10 +148,6 @@
|
||||
<a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (1)</a>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<item>
|
||||
<title>Eric Chang</title>
|
||||
<link>https://h.cowbay.org/author/eric-chang/</link>
|
||||
<pubDate>Mon, 01 Jul 2019 09:06:12 +0800</pubDate>
|
||||
<pubDate>Tue, 23 Jul 2019 15:06:37 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/author/eric-chang/</guid>
|
||||
<description></description>
|
||||
|
||||
Reference in New Issue
Block a user