<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ansible &#8211; moneyslow.com</title>
	<atom:link href="https://moneyslow.com/tag/ansible/feed" rel="self" type="application/rss+xml" />
	<link>https://moneyslow.com</link>
	<description>making money with technology</description>
	<lastBuildDate>Sat, 09 Nov 2024 04:02:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
	<item>
		<title>ansible 的lineinfile模块使用-在某行前面添加一行、在某行后面添加一行、删除某一行、末尾加入一行、替换或添加某一行</title>
		<link>https://moneyslow.com/ansible-%e7%9a%84lineinfile%e6%a8%a1%e5%9d%97%e4%bd%bf%e7%94%a8-%e5%9c%a8%e6%9f%90%e8%a1%8c%e5%89%8d%e9%9d%a2%e6%b7%bb%e5%8a%a0%e4%b8%80%e8%a1%8c%e3%80%81%e5%9c%a8%e6%9f%90%e8%a1%8c%e5%90%8e%e9%9d%a2.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Sun, 27 Sep 2020 07:06:07 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[ansible]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[批量修改文件]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=11541</guid>

					<description><![CDATA[ansible使用技巧]]></description>
		
		
		
			</item>
		<item>
		<title>Ansible 工作机制和简单命令</title>
		<link>https://moneyslow.com/ansible-%e5%b7%a5%e4%bd%9c%e6%9c%ba%e5%88%b6%e5%92%8c%e7%ae%80%e5%8d%95%e5%91%bd%e4%bb%a4.html</link>
		
		<dc:creator><![CDATA[Jkfkgnrk]]></dc:creator>
		<pubDate>Thu, 18 May 2017 09:34:24 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[ansible]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=7396</guid>

					<description><![CDATA[Ansible工作机制Ansible 在管理节点将 Ansible 模块通过 SSH 协议推送到被管理端执行，执行完之后自动删除，可以使用 SVN 等来管理自定义模块及编排. 由上面的图可以看到 Ansible 的组成由 5 个部分组成：Ansible： 核心Modules： 包括 Ansible 自带的核心模块及自定义模块Plugins： 完成模块功能的补充，包括连接插件、邮件插件等Playbooks： 编排,定义 Ansible 多任务配置文件，有 Ansible 自动执行Inventory： 定义 Ansible 管理主机的清单Ansible安装除了源码编译安装还有两种比较简单的安装方式。3.1 yum安装rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum install python-devel ansible -y3.2 pip安装pip install ansibleAnsible的简单使用Ansible 通过读取默认的主机清单配置/etc/ansible/hosts,可以同时连接到多个远程主机上执行任务。默认路径可以通过修改 ansible.cfg 的 hostfile 参数指定路径。cat /etc/ansible/hosts[web]192.168.1.100192.168.1.101注：为了避免Ansible下发指令时输入目标主机密码，需要提前配置免密钥登陆#@@ping测试，所有主机ansible all -m ping#@@运行shell命令，web组服务器ansible web -m shell -a "ps aux &#124; grep java"#@@文件传输(copy) &#160;将ansible本地的/etc/hosts [&#8230;]]]></description>
		
		
		
			</item>
	</channel>
</rss>
