fix typo
This commit is contained in:
@@ -90,6 +90,90 @@
|
||||
|
||||
|
||||
|
||||
<div class="article-wrapper u-cf">
|
||||
|
||||
<a class="bubble" href="/post/another-way-to-keep-ansible-log/">
|
||||
<i class="fa fa-fw fa-pencil"></i>
|
||||
</a>
|
||||
|
||||
<article class="default article">
|
||||
|
||||
<div class="featured-image">
|
||||
<a href="/post/another-way-to-keep-ansible-log/">
|
||||
<img src="/images/post-default-10.jpg" alt="">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a></h3>
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<span class="date moment">2019-08-05</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>之前為了能夠在執行完 ansible playbook 後,能有個log 可以看</p>
|
||||
|
||||
<p>所以在每次執行的時候,都要加入 tee 的指令</p>
|
||||
|
||||
<p>像是</p>
|
||||
|
||||
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
|
||||
</code></pre>
|
||||
|
||||
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
|
||||
|
||||
<p>反正也沒有人關心結果怎樣 (攤手</p>
|
||||
|
||||
<p></p>
|
||||
|
||||
|
||||
<a href="/post/another-way-to-keep-ansible-log/" 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-run-task-depends-on-ipaddr/">
|
||||
@@ -265,6 +349,14 @@
|
||||
<strong></strong>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/another-way-to-keep-ansible-log/">[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/send-mail-to-notify-after-pxe-install/">[筆記] 用pxe 安裝系統,完成後送出郵件通知 / send mail notification after pxe install</a>
|
||||
</li>
|
||||
@@ -285,14 +377,6 @@
|
||||
<a href="/post/install-asus-10g-nic-in-proxmox/">Install Asus 10G NIC XG-C100C in Proxmox</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -303,11 +387,11 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (21)</a>
|
||||
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (22)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/categories/ansible">Ansible (2)</a>
|
||||
<a href="/categories/ansible">Ansible (3)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
@@ -5,11 +5,33 @@
|
||||
<link>https://h.cowbay.org/categories/ansible/</link>
|
||||
<description>Recent content in Ansible on MCの飄狂山莊㊣</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Tue, 23 Jul 2019 15:06:37 +0800</lastBuildDate>
|
||||
<lastBuildDate>Mon, 05 Aug 2019 16:24:40 +0800</lastBuildDate>
|
||||
|
||||
<atom:link href="https://h.cowbay.org/categories/ansible/index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
|
||||
<item>
|
||||
<title>[筆記] 為了保存log 用script 指令執行ansible / Another Way to Keep Ansible Log using script command</title>
|
||||
<link>https://h.cowbay.org/post/another-way-to-keep-ansible-log/</link>
|
||||
<pubDate>Mon, 05 Aug 2019 16:24:40 +0800</pubDate>
|
||||
|
||||
<guid>https://h.cowbay.org/post/another-way-to-keep-ansible-log/</guid>
|
||||
<description><p>之前為了能夠在執行完 ansible playbook 後,能有個log 可以看</p>
|
||||
|
||||
<p>所以在每次執行的時候,都要加入 tee 的指令</p>
|
||||
|
||||
<p>像是</p>
|
||||
|
||||
<pre><code>ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
|
||||
</code></pre>
|
||||
|
||||
<p>一直都是放在crontab 裡面執行,也就沒有去管他</p>
|
||||
|
||||
<p>反正也沒有人關心結果怎樣 (攤手</p>
|
||||
|
||||
<p></p></description>
|
||||
</item>
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user