<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ansible on 我的博客</title><link>https://hugo.kkun.top/tags/ansible/</link><description>Recent content from 我的博客</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>your@email.com (你的名字)</managingEditor><webMaster>your@email.com (你的名字)</webMaster><copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright><lastBuildDate>Wed, 01 Feb 2023 10:28:55 +0000</lastBuildDate><atom:link href="https://hugo.kkun.top/tags/ansible/index.xml" rel="self" type="application/rss+xml"/><item><title>用 Ansible 简化 K8S 部署</title><link>https://hugo.kkun.top/post/%E7%94%A8-ansible-%E7%AE%80%E5%8C%96-k8s-%E9%83%A8%E7%BD%B2/</link><pubDate>Wed, 01 Feb 2023 10:28:55 +0000</pubDate><author>your@email.com (你的名字)</author><guid>https://hugo.kkun.top/post/%E7%94%A8-ansible-%E7%AE%80%E5%8C%96-k8s-%E9%83%A8%E7%BD%B2/</guid><description>
<![CDATA[<h1>用 Ansible 简化 K8S 部署</h1><p>作者：你的名字（your@email.com）</p>
        
          <h2 id="一概述">
<a class="header-anchor" href="#%e4%b8%80%e6%a6%82%e8%bf%b0"></a>
一、概述
</h2><p>前面我写了关于k8s环境部署的几篇文章，k8s部署还是比较麻烦的，所以是有必要考虑一键部署的方案，这里借助ansible playbook来实现k8s环境的一键部署，实现快速部署的目的。</p>
        
        <hr><p>本文2023-02-01首发于<a href='https://hugo.kkun.top/'>我的博客</a>，最后修改于2023-02-01</p>]]></description><category>kubernetes</category><category>Ansible</category></item><item><title>Ansible 介绍与操作</title><link>https://hugo.kkun.top/post/ansible-%E4%BB%8B%E7%BB%8D%E4%B8%8E%E6%93%8D%E4%BD%9C/</link><pubDate>Sun, 29 Jan 2023 08:56:55 +0000</pubDate><author>your@email.com (你的名字)</author><guid>https://hugo.kkun.top/post/ansible-%E4%BB%8B%E7%BB%8D%E4%B8%8E%E6%93%8D%E4%BD%9C/</guid><description>
<![CDATA[<h1>Ansible 介绍与操作</h1><p>作者：你的名字（your@email.com）</p>
        
          <p><img src="https://gh-proxy.com/https://raw.githubusercontent.com/Ghostpanter/tuchuang/main/img/202301290845980.png" alt="图片"></p>
<h2 id="一概述">
<a class="header-anchor" href="#%e4%b8%80%e6%a6%82%e8%bf%b0"></a>
一、概述
</h2><blockquote>
<p><em><code>Ansible</code>是新出现的自动化运维工具，<strong>基于 Python 开发</strong>，集合了众多运维工具（puppet、cfengine、chef、func、fabric）的优点，实现了批量系统配置、批量程序部署、批量运行命令等功能。</em></p>
        
        <hr><p>本文2023-01-29首发于<a href='https://hugo.kkun.top/'>我的博客</a>，最后修改于2023-01-29</p>]]></description><category>Ansible</category></item><item><title>Ansible playbook 介绍与操作</title><link>https://hugo.kkun.top/post/ansible-playbook-%E4%BB%8B%E7%BB%8D%E4%B8%8E%E6%93%8D%E4%BD%9C/</link><pubDate>Sun, 29 Jan 2023 08:56:55 +0000</pubDate><author>your@email.com (你的名字)</author><guid>https://hugo.kkun.top/post/ansible-playbook-%E4%BB%8B%E7%BB%8D%E4%B8%8E%E6%93%8D%E4%BD%9C/</guid><description>
<![CDATA[<h1>Ansible playbook 介绍与操作</h1><p>作者：你的名字（your@email.com）</p>
        
          <h2 id="一概述">
<a class="header-anchor" href="#%e4%b8%80%e6%a6%82%e8%bf%b0"></a>
一、概述
</h2><ul>
<li><code>playbook</code> 与 <code>ad-hoc</code> 相比,是一种完全不同的运用 ansible 的方式，类似与 saltstack 的 state 状态文件。ad-hoc 无法持久使用，playbook 可以持久使用。</li>
<li><code>playbook</code> 是由一个或多个 play 组成的列表，play 的主要功能在于将事先归并为一组的主机装扮成事先通过 ansible 中的 task 定义好的角色。</li>
<li>从根本上来讲，所谓的 task 无非是调用 ansible 的一个 module。将多个 play 组织在一个 playbook 中，即可以让它们联合起来按事先编排的机制完成某一任务。</li>
</ul>
<p>参考文档：<a href="https://ansible-tran.readthedocs.io/en/latest/docs/playbooks.html">https://ansible-tran.readthedocs.io/en/latest/docs/playbooks.html</a></p>
        
        <hr><p>本文2023-01-29首发于<a href='https://hugo.kkun.top/'>我的博客</a>，最后修改于2023-01-29</p>]]></description><category>Ansible</category><category>playbook</category></item></channel></rss>