python selinuxm 需要如何安装selinux吗

sub-projects
PackagingDrafts/SELinux
From FedoraProject
This is a collection of common cases for solving SELinux issues at the packaging level. This page is only valid for Fedora Core 5 and newer.
Problem: SELinux prevents your application from running because some files don't have the required context type.
Solution: There are two things to do in your package's scriptlets:
Label the files with the correct type
Save this configuration into the current SELinux policy, to keep your types in place after relabeling
Example: The awstats application is a CGI-based logfiles analyser. The CGI needs to have the httpd_sys_script_exec_t type to run with SELinux enabled. What needs to be added to the spec file:
Requires(post): policycoreutils-python
Requires(postun): policycoreutils-python
semanage fcontext -a -t httpd_sys_script_exec_t '%{_datadir}/awstats/wwwroot/cgi-bin(/.*)?' 2&/dev/null || :
restorecon -R %{_datadir}/awstats/wwwroot/cgi-bin || :
if [ $1 -eq 0 ] ; then
# final removal
semanage fcontext -d -t httpd_sys_script_exec_t '%{_datadir}/awstats/wwwroot/cgi-bin(/.*)?' 2&/dev/null || :
BEWARE: The Requires: policycoreutils-python will add some dependencies. To avoid dependency bloat it should be tried :
a. to work without manual scripts (e.g. file bug against selinux-policy and request that your package will be handled), or
a. split the SELinux related part into an own subpackage in a way like
%package selinux
Requires: %name = %version-%release
Requires(...): policycoreutils-python
%post selinux
a. move current main package (without the SELinux stuff) into e.g. a -core subpackage, keep SELinux in main and require -core by main. Unexperienced people will get the expected result (correctly labeled program) by "yum install &package&" while people without SELinux can install only -core.
Discussions about this approach:
An alternative approach, which might be more manageable in the long term, would be to create a policy module for the application
containing only file context definitions. The reasoning behind this approach is described here:
Problem: You need to define new types for your application
Solution: You need to create an SELinux module, defining the new types and how they should be dealt with.
Example: The mock application makes a chroot to build packages. The content of the chroot needs a special type to identify files that may need the execmod feature, and mock itself needs to run in its own domain, which is allowed to do execmem and execheap when building packages for mono or java applications.
Make a directory to create and build the policy module for the package, e.g. /usr/share/selinux/packages/mock and change to that directory.
Create a file called mock.te, with the following content:
policy_module(mock, 0.7.1)
&!--######################################
type mock_t;
domain_type(mock_t)
type mock_exec_t;
domain_entry_file(mock_t,mock_exec_t)
type mock_var_lib_t;
files_type(mock_var_lib_t)
&!--######################################
ifdef(&code&targeted_policy',&/code&
allow mock_t self:process { execheap execmem };
unconfined_domain_noaudit(mock_t)
role system_r types mock_t;
allow mock_t mock_var_lib_t:
mock_domtrans(unconfined_t)
Create a file called mock.fc, with the following content:
/usr/bin/mock
gen_context(system_u:object_r:mock_exec_t,s0)
/var/lib/mock(/.*)?
gen_context(system_u:object_r:mock_var_lib_t,s0)
Create a file called mock.if, with the following content:
&!-- &summary&Build packages in a chroot environment.&/summary&
&!--######################################
&!-- &summary&
Execute the mock program in the mock domain.
&!-- &/summary&
&!-- &param name=&domain&&
Domain allowed access.
&/summary&
&!-- &/param&
interface(&code&mock_domtrans',&/code&
gen_require(&code&
type mock_t, mock_exec_t;
corecmd_search_bin($1)
domain_auto_trans($1, mock_exec_t, mock_t)
allow $1 mock_t:
allow mock_t $1:
allow mock_t $1:fifo_file rw_file_
allow mock_t $1:
&!--######################################
&!-- &summary&
Create objects in the /var/lib/mock directory
&!-- &/summary&
&!-- &param name=&domain&&
Domain allowed access.
&/summary&
&!-- &/param&
&!-- &param name=&file_type&&
The type of the object to be created
&/summary&
&!-- &/param&
&!-- &param name=&object_class&&
The object class.
&/summary&
&!-- &/param&
interface(&code&files_var_lib_mock_filetrans',&/code&
gen_require(&code&
type var_t, var_lib_t, mock_var_lib_t;
allow $1 var_t:dir search_dir_
allow $1 var_lib_t:dir search_dir_
allow $1 mock_var_lib_t:dir rw_dir_
type_transition $1 mock_var_lib_t:$3 $2;
run make -f /usr/share/selinux/devel/Makefile
as root, run semodule -i mock.pp
Some applications might not need one or more of the type enforcement (*.te), file context (*.fc), or interface (*.if) these can be created as empty files if nothing is needed for them.
You can ship the *.{te,fc,if} files as additional SOURCE files in your package, do the compiling in %install, and load the module with the semodule command in %post (see the Pure-FTPd example below).
The preferred place for the module is in the directory /usr/share/selinux/packages/&package name&.
Any place could potentially be used, though semodule has restricted rights to read files itself, which makes a location under /usr preferable.
We also need to standardize on some location, and this location makes it easy to find all the available modules.
You will need:
BuildRequires: selinux-policy-devel (to build the SELinux module in %install)
Requires(post): policycoreutils (to load the module)
Discussions about this approach :
A more detailed guide to bundling policy modules within RPM packages can be found in ["PackagingDrafts/SELinux/PolicyModules"]
Problem: There are applications in Extras that perform the same task as applications in Core. They should be protected by SELinux in the same way.
Solution: Label the new binaries the same way as the already-protected ones. Check that all the functionalities still work and that you have no AVC messages. If you do, extend the policy with an SELinux module.
Example: Pure-FTPd is an FTP server available in Extras. It should be protected is the same manner that vsftpd is in Core. Thus the file /usr/sbin/pure-ftpd should be labelled ftpd_exec_t. But Pure-FTPd has additional features: it is capable of taking its user list from MySQL, PostgreSQL or LDAP. We have to write a module to allow it to connect to these servers.
To do that, we ship the file pureftpd.te (the filename cannot contain dashes) in the package, containing this:
policy_module(pureftpd, 1.0)
type ftpd_t;
init_read_utmp(ftpd_t)
init_dontaudit_write_utmp(ftpd_t)
&!--# Allow connect to mysql
corenet_tcp_connect_mysqld_port(ftpd_t)
mysql_stream_connect(ftpd_t);
mysql_rw_db_sockets(ftpd_t)
&!--# Allow connect to postgresql
corenet_tcp_connect_postgresql_port(ftpd_t)
postgresql_stream_connect(ftpd_t)
sysnet_use_ldap(ftpd_t)
Then we compile this policy in the %install step, together with the file_contexts:
cd selinux
echo &%{_sbindir}/pure-ftpd
system_u:object_r:ftpd_exec_t:s0& & pureftpd.fc
echo '%{_localstatedir}/log/pureftpd.log
system_u:object_r:xferlog_t:s0' && pureftpd.fc
touch pureftpd.if
make -f %{_datadir}/selinux/devel/Makefile
install -p -m 644 -D pureftpd.pp $RPM_BUILD_ROOT%{_datadir}/selinux/packages/%{name}/pureftpd.pp
To build the policy, we need to add BuildRequires: selinux-policy-targeted, checkpolicy.
The build requirement of selinux-policy-targeted is necessary because of  ; once this is fixed, it will be possible to use a build requirement of selinux-policy instead.
It is also better to package all SELinux-related files and scriptlets in a separate rpm, named &package&-selinux. This way, the administrator can choose to enable SELinux protection or not.
Scriptlets: The -selinux package should load the policy on install, and set the file contexts. It should unload the policy on uninstall, set back the file contexts, and it should replace the policy module on upgrades. The daemon needs to be restarted when it is relabeled, but not when the policy module is replaced. We chose a set of scriptlets very similar to  :
Requires(post): policycoreutils, initscripts, %{name}
Requires(preun): policycoreutils, initscripts, %{name}
Requires(postun): policycoreutils
%post selinux
if [ &$1& -le &1& ] ; then # First install
semodule -i %{_datadir}/selinux/packages/%{name}/pureftpd.pp 2&/dev/null || :
fixfiles -R pure-ftpd restore
/sbin/service pure-ftpd condrestart & /dev/null 2&&1
%preun selinux
if [ &$1& -lt &1& ] ; then # Final removal
semodule -r pureftpd 2&/dev/null || :
fixfiles -R pure-ftpd restore
/sbin/service pure-ftpd condrestart & /dev/null 2&&1
%postun selinux
if [ &$1& -ge &1& ] ; then # Upgrade
semodule -i %{_datadir}/selinux/packages/%{name}/pureftpd.pp 2&/dev/null || :
Do all above scriptlets work with SELinux disabled ?
Do all above scriptlets work with SELinux not installed ?
Copyright & 2016 Red Hat, Inc. and others.
All Rights Reserved.
For comments or queries, please .
The Fedora Project is maintained and driven by the community and sponsored by Red Hat.
This is a community maintained site.
Red Hat is not responsible for content.
This page was last modified on 23 May 2012, at 20:04.记录一下fedora20安装后,需要安装的一些必备的软件包
安装fedora20后的初始化配置
如果你的电脑处于局域网内,那么防火墙是不需要的的,停止它!
sudo systemctl stop firewalld service
sudo systemctl disable firewalld service
1. 安装fedora20后的初始化配置
1.1. 防火墙
如果你的电脑处于局域网内,那么防火墙是不需要的的,停止它!
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
1.2. SELinux
停止SELinux,如果你不需要它。
sudo vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX= disabled # change
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
2. 安装rpmfusion源
它有非常多的免费和非免费的软件,音视频解码器。
Fedora 14的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-14.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-14.noarch.rpm
Fedora 15的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-15.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-15.noarch.rpm
Fedora 16的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-16.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-16.noarch.rpm
Fedora 17的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-17.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-17.noarch.rpm
Fedora 18的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm
Fedora 19的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-19.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-19.noarch.rpm
Fedora20的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-20.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-20.noarch.rpm
3. 安装一下有用的一些软件包
sudo yum -y install yum-fastestmirror unrar thunderbird emacs ibus-table \
redhat-lsb gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg \
compat-libstdc++-33 NetworkManager-devel python-gevent tracker-ui-tools qemu \
libpciaccess-devel xorg-x11-util-macros llvm-devel mtdev* mutt msmtp tftp \
tftp-server policycoreutils-gui mtd-utils mtd-utils-ubi vim ibus-pinyin \
gnome-tweak-tool ckermit stardict stardict-dic-zh_CN stardict-dic-en \
ibus-table-chinese-wubi-haifeng gnash smplayer vlc samba pidgin pidgin-sipe \
meld expect glibc-static ncurses-static genromfs cmake ccache p7zip nmap \
gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-libav
4. 升级一下:
sudo yum -y update
5.安装chrome
32位系统:
wget /linux/direct/google-chrome-stable_current_i386.rpm
sudo rpm -ivh google-chrome-stable_current_i386.rpm
64位系统:
wget /linux/direct/google-chrome-stable_current_x86_64.rpm
sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
6. 安装 flash plugin
32位系统:
wget /adobe-release/adobe-release-i386-1.0-1.noarch.rpm
sudo rpm -ivh adobe-release-i386-1.0-1.noarch.rpm
64位系统:
wget /adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
sudo rpm -ivh adobe-release-x86_64-1.0-1.noarch.rpm
sudo yum -y install flash-plugin
7. 安装音视频解压器:
wget http://mplayerhq.hu/MPlayer/releases/codecs/all-.tar.bz2
tar jxf all-.tar.bz
32位系统:
sudo mkdir -p /usr/lib/codecs
sudo cp all-/* /usr/lib/codecs
64位系统:
sudo mkdir -p /usr/lib64/codecs
sudo cp all-/* /usr/lib64/codecs
8. 配置samba
sudo smbpasswd -a -U your_username #设置登陆的用户名和密码,你可以运行 whoami 查看你的用户名
sudo systemctl enable smb.service # 开机启动samba
sudo systemctl start smb.service # 立即启动samba
sudo systemctl restart smb.service # 立即重启samba
sudo firewall-cmd --permanent --zone=public --add-service=samba # 配置防火墙,让其它电脑能访问你的电脑。
下面是一个简单配置示例:
mkdir /home/public
chmod 777 /home/public
comment = Galen's Share
path = /home/public
writable = yes
valid users = your_username # 你可以运行 whoami 查看你的用户名
配置好后,记得重启samba (sudo systemctl restart smb.service)
9. 配置NFS
sudo systemctl enable nfs-server.service # 开机启动NFS
sudo systemctl start nfs-server.service # 立即启动NFS
sudo systemctl restart nfs-server.service # 立即重启NFS
# 关闭防火墙, 否则会出现(mount: RPC: U errno = No route to host)
sudo systemctl status firewalld.service
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
下面是一个简单配置示例:
vi /etc/exports
/home/nfsroot *(rw,sync,no_subtree_check)
10. 配置输入法
以前的im-chooser不能正常使用了。否则会出现:“GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._imsettings_2derror_2dquark.Code5: Current desktop isn't targeted by Input Method.”
1. 在屏幕右上角点击你的用户名,会出现下拉菜单,点“系统设置/System Settings", 类似的控制面板。
2. 点“区域&语言/Region&Language”
3. 的“输入源/Input Sources“中点添加按钮,添加你想要输入法,
如果没有你想要的输入法,在控制台输入下面这条指令, 以显示所有的输入法:
gsettings set org.gnome.desktop.input-sources show-all-sources true
4. 在”快捷键/Shortcut Setting"中,设置"Switch to next source"为 Ctrl+Space.dong 的BLOG
用户名:dong
文章数:39
评论数:29
访问量:20022
注册日期:
阅读量:5863
阅读量:12276
阅读量:310146
阅读量:1025864
51CTO推荐博文
前言:AnsibleWorks成立于2012年,由自动化工具Cobbler及Func的开发者Michael DeHaan创建。其Ansible平台是一个开源的配置及计算机管理平台。可实现多节点的软件部署,执行特定任务并进行配置管理。Ansible 跟其他IT自动化技术的区别在于其关注点并非配置管理、应用部署或IT流程工作流,而是提供一个统一的界面来协调所有的IT自动化功能,因此 Ansible的系统更加易用,部署更快。受管理的节点无需安装额外的远程控制软件,由平台通过SSH(Secure SHell)对其进行管理,因此十分方便。其模块支持JSON等标准输出格式,可采用任何编程语言重写。Ansible可以让用户避免编写脚本或代码来管理应用,同时还能搭建工作流实现IT任务的自动化执行。IT自动化可以降低技术门槛及对传统IT的依赖,从而加快项目的交付速度。ansible有如下优点: & & &&1、轻量级,他不需要去客户端安装agent,更新时,只需要在操作机上进行一次更新即可 & & & &2、批量任务执行可以写成脚本,而且不用分发到远程就可以执行 & & & &3、使用python编写的,维护更简单 & & & &4、支持sudo&&&&& &&& & &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&摘抄自网络――安装ansible1)创建ansible用户[root@node1&~]#&useradd&ansible
[root@node1&~]#&passwd&ansible
更改用户&ansible&的密码&。
新的&密码:
重新输入新的&密码:
passwd:&所有的身份验证令牌已经成功更新。2)赋予root权限[root@node1&~]#&vi&/etc/sudoers
ansible&ALL=(ALL)&NOPASSWD:ALL3)安装ansible[root@node1&~]#&yum&install&PyYAML.x86_64&python-paramiko.noarch&python-jinja2.x86_64&python-devel&-y
[root@node1&~]#&wget&https://pypi.python.org/packages/source/a/ansible/ansible-1.7.2.tar.gz
[root@node1&~]#wget&https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.tar.gz
[root@node1&~]#&tar&zfxv&setuptools-7.0.tar.gz
[root@node1&~]#&cd&setuptools-7.0
[root@node1&setuptools-7.0]#&python&setup.py&install
[root@node1&setuptools-7.0]#&cd&..
[root@node1&~]#&tar&fzvx&ansible-1.7.2.tar.gz&
[root@node1&~]#&cd&ansible-1.7.2
[root@node1&ansible-1.7.2]#&python&setup.py&build&
[root@node1&ansible-1.7.2]#&python&setup.py&install
[root@node1&ansible-1.7.2]#&mkdir&/etc/ansible
[root@node1&ansible-1.7.2]#&cp&examples/ansible.cfg&/etc/ansible/
[root@node1&ansible-1.7.2]#&cp&examples/hosts&/etc/ansible/4)配置ansible4)配置ansible[root@node1&ansible-1.7.2]#&vi&/etc/ansible/ansible.cfg
hostfile&&&&&&&=&/etc/ansible/hosts
library&&&&&&&&=&/usr/share/ansible
remote_tmp&&&&&=&$HOME/.ansible/tmp
pattern&&&&&&&&=&*
forks&&&&&&&&&&=&5
poll_interval&&=&15
sudo_user&&&&&&=&ansible
#ask_sudo_pass&=&True
#ask_pass&&&&&&=&True
transport&&&&&&=&smart
remote_port&&&&=&22
module_lang&&&&=&C
[root@node1&ansible-1.7.2]#&vi&/etc/ansible/hosts
[localhost]
192.168.253.129
192.168.253.130
192.168.253.1315)ssh互信[root@node1&ansible-1.7.2]#&su&-&ansible
[ansible@node1&~]$&ssh-keygen&-t&rsa
Generating&public/private&rsa&key&pair.
Enter&file&in&which&to&save&the&key&(/home/ansible/.ssh/id_rsa):&
Created&directory&'/home/ansible/.ssh'.
Enter&passphrase&(empty&for&no&passphrase):&
Enter&same&passphrase&again:&
Your&identification&has&been&saved&in&/home/ansible/.ssh/id_rsa.
Your&public&key&has&been&saved&in&/home/ansible/.ssh/id_rsa.pub.
The&key&fingerprint&is:
dc:c9:ac:d8:46:81:37:72:08:f3:77:06:98:33:cb:5f&ansible@node1
The&key's&randomart&image&is:
+--[&RSA&2048]----+
|&&&&o&&o.&&&&&&&&|
|&&&&&+=o&.&&&&&&&|
|&&&&&.=+*&o&&&&&&|
|&&&&&&o*&OE.&&&&&|
|&&&&&&&.S.=&&&&&&|
|&&&&&&&+..&&&&&&&|
|&&&&&&.&+&&&&&&&&|
|&&&&&&&.&&&&&&&&&|
|&&&&&&&&&&&&&&&&&|
+-----------------+
[ansible@node1&~]$&ssh-keygen&-t&dsa
Generating&public/private&dsa&key&pair.
Enter&file&in&which&to&save&the&key&(/home/ansible/.ssh/id_dsa):&
Enter&passphrase&(empty&for&no&passphrase):&
Enter&same&passphrase&again:&
Your&identification&has&been&saved&in&/home/ansible/.ssh/id_dsa.
Your&public&key&has&been&saved&in&/home/ansible/.ssh/id_dsa.pub.
The&key&fingerprint&is:
b3:a6:94:bf:5c:21:a3:c5:8b:74:b8:a5:8c:62:34:d2&ansible@node1
The&key's&randomart&image&is:
+--[&DSA&1024]----+
|&&&&&&&&&&&&&&&&&|
|&&&&&&&&&&&&&&&&&|
|&&&&&&&&&&&&&&&&&|
|&.&&&&&o&&&&&&&&&|
|.&E&&&o&S&.&&&&&&|
|&o&.&+&X&*&.&&&&&|
|&&o&.&O&+&.&&&&&&|
|&.&.&.&=&.&&&&&&&|
|&&&&&&.&+.&&&&&&&|
+-----------------+
[ansible@node1&~]$&cd&.ssh/
[ansible@node1&.ssh]$&cat&*.pub&&&authorized_keys
[ansible@node1&.ssh]$&chmod&-R&700&.
#测试本机互信
[ansible@node1&.ssh]$&ssh&127.0.0.1
The&authenticity&of&host&'127.0.0.1&(127.0.0.1)'&can't&be&established.
RSA&key&fingerprint&is&fa:73:59:f5:08:95:b2:2e:7f:3e:52:91:8a:e6:47:1f.
Are&you&sure&you&want&to&continue&connecting&(yes/no)?&yes
Warning:&Permanently&added&'127.0.0.1'&(RSA)&to&the&list&of&known&hosts.
[ansible@node1&~]$&exit
Connection&to&127.0.0.1&closed.6)远程ssh互信配置以及测试#复制公钥到client
[ansible@node1&.ssh]$&scp&authorized_keys&ansible@192.168.253.129:
The&authenticity&of&host&'192.168.253.129&(192.168.253.129)'&can't&be&established.
RSA&key&fingerprint&is&fa:73:59:f5:08:95:b2:2e:7f:3e:52:91:8a:e6:47:1f.
Are&you&sure&you&want&to&continue&connecting&(yes/no)?&yes
Warning:&Permanently&added&'192.168.253.129'&(RSA)&to&the&list&of&known&hosts.
ansible@192.168.253.129's&password:&
authorized_keys&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&100%&&998&&&&&1.0KB/s&&&00:00&&&&
[ansible@node1&.ssh]$&scp&authorized_keys&ansible@192.168.253.130:
The&authenticity&of&host&'192.168.253.130&(192.168.253.130)'&can't&be&established.
RSA&key&fingerprint&is&fa:73:59:f5:08:95:b2:2e:7f:3e:52:91:8a:e6:47:1f.
Are&you&sure&you&want&to&continue&connecting&(yes/no)?&yes
Warning:&Permanently&added&'192.168.253.130'&(RSA)&to&the&list&of&known&hosts.
ansible@192.168.253.130's&password:&
authorized_keys&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&100%&&998&&&&&1.0KB/s&&&00:00&&&&
[ansible@node1&.ssh]$&scp&authorized_keys&ansible@192.168.253.131:
The&authenticity&of&host&'192.168.253.131&(192.168.253.131)'&can't&be&established.
RSA&key&fingerprint&is&fa:73:59:f5:08:95:b2:2e:7f:3e:52:91:8a:e6:47:1f.
Are&you&sure&you&want&to&continue&connecting&(yes/no)?&yes
Warning:&Permanently&added&'192.168.253.131'&(RSA)&to&the&list&of&known&hosts.
ansible@192.168.253.131's&password:&
authorized_keys&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&100%&&998&&&&&1.0KB/s&&&00:00&&
#测试是否互信成功&
[ansible@node1&.ssh]$&ssh&192.168.253.129
[ansible@node2&~]$&mkdir&.ssh
[ansible@node2&~]$&mv&authorized_keys&.ssh/
[ansible@node2&~]$&chmod&-R&700&.ssh/
[ansible@node1&.ssh]$&ssh&192.168.253.130
[ansible@node3&~]$&mkdir&.ssh
[ansible@node3&~]$&mv&authorized_keys&.ssh/
[ansible@node3&~]$&chmod&-R&700&.ssh/
[ansible@node1&.ssh]$&ssh&192.168.253.131
[ansible@node3&~]$&mkdir&.ssh
[ansible@node3&~]$&mv&authorized_keys&.ssh/
[ansible@node3&~]$&chmod&-R&700&.ssh/
[ansible@node1&.ssh]$&ssh&192.168.253.129
[ansible@node2&~]$&exit
Connection&to&192.168.253.129&closed.
[ansible@node1&.ssh]$&ssh&192.168.253.130
[ansible@node3&~]$&exir
-bash:&exir:&command&not&found
[ansible@node3&~]$&exit
Connection&to&192.168.253.130&closed.
[ansible@node1&.ssh]$&ssh&192.168.253.131
[ansible@node4&~]$&exit
Connection&to&192.168.253.131&closed.――使用ansible1)使用ping模块测试是否成功[ansible@node1&~]$&chmod&g-wx,o-wx&.python-eggs/
[ansible@node1&~]$&ansible&all&-m&ping
192.168.253.131&|&success&&&&{
&&&&"changed":&false,&
&&&&"ping":&"pong"
192.168.253.129&|&success&&&&{
&&&&"changed":&false,&
&&&&"ping":&"pong"
192.168.253.130&|&success&&&&{
&&&&"changed":&false,&
&&&&"ping":&"pong"
127.0.0.1&|&success&&&&{
&&&&"changed":&false,&
&&&&"ping":&"pong"
}2)查看时间[ansible@node1&~]$&ansible&all&-m&command&-a&"sudo&date"
192.168.253.131&|&success&|&rc=0&&&
Thu&Nov&20&17:50:09&CST&2014
192.168.253.129&|&success&|&rc=0&&&
Thu&Nov&20&17:50:09&CST&2014
192.168.253.130&|&success&|&rc=0&&&
Thu&Nov&20&17:50:09&CST&2014
127.0.0.1&|&success&|&rc=0&&&
Thu&Nov&20&17:50:09&CST&20143)安装软件#使用yum安装软件
[ansible@node1&~]$&ansible&all&-m&command&-a&"sudo&yum&install&zip&unzip&-y"
192.168.253.131&|&success&|&rc=0&&&
Loaded&plugins:&fastestmirror
Loading&mirror&speeds&from&cached&hostfile
&*&base:&mirrors.
&*&extras:&mirrors.
&*&updates:&mirrors.
Setting&up&Install&Process
Package&zip-3.0-1.el6.x86_64&already&installed&and&latest&version
Package&unzip-6.0-1.el6.x86_64&already&installed&and&latest&version
Nothing&to&do
#说明此软件之前在每台服务器都已经装过了
192.168.253.129&|&success&|&rc=0&&&
Loaded&plugins:&fastestmirror
Loading&mirror&speeds&from&cached&hostfile
&*&base:&mirrors.btte.net
&*&extras:&mirrors.btte.net
&*&updates:&mirrors.
Setting&up&Install&Process
Package&zip-3.0-1.el6.x86_64&already&installed&and&latest&version
Package&unzip-6.0-1.el6.x86_64&already&installed&and&latest&version
Nothing&to&do
192.168.253.130&|&success&|&rc=0&&&
Loaded&plugins:&fastestmirror
Loading&mirror&speeds&from&cached&hostfile
&*&base:&mirrors.
&*&extras:&mirrors.
&*&updates:&mirrors.
Setting&up&Install&Process
Package&zip-3.0-1.el6.x86_64&already&installed&and&latest&version
Package&unzip-6.0-1.el6.x86_64&already&installed&and&latest&version
Nothing&to&do
127.0.0.1&|&success&|&rc=0&&&
Loaded&plugins:&fastestmirror
Loading&mirror&speeds&from&cached&hostfile
&*&base:&mirrors.
&*&extras:&mirrors.
&*&updates:&mirrors.
Setting&up&Install&Process
Package&zip-3.0-1.el6.x86_64&already&installed&and&latest&version
Package&unzip-6.0-1.el6.x86_64&already&installed&and&latest&version
Nothing&to&do4)查看ansible内置模块[ansible@node1&~]$&ansible-doc&-l
acl&&&&&&&&&&&&&&&&&&Sets&and&retrieves&file&ACL&information.&&&&&&&&&&&&&&&&&&&&
add_host&&&&&&&&&&&&&add&a&host&(and&alternatively&a&group)&to&the&ansible-playbo
airbrake_deployment&&Notify&airbrake&about&app&deployments&&&&&&&&&&&&&&&&&&&&&&&
alternatives&&&&&&&&&Manages&alternative&programs&for&common&commands&&&&&&&&&&&&
apache2_module&&&&&&&enables/disables&a&module&of&the&Apache2&webserver&&&&&&&&&&
apt&&&&&&&&&&&&&&&&&&Manages&apt-packages&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
apt_key&&&&&&&&&&&&&&Add&or&remove&an&apt&key&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
apt_repository&&&&&&&Add&and&remove&APT&repositories&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
apt_rpm&&&&&&&&&&&&&&apt_rpm&package&manager&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
arista_interface&&&&&Manage&physical&Ethernet&interfaces&&&&&&&&&&&&&&&&&&&&&&&&&
arista_l2interface&&&Manage&layer&2&interfaces&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
arista_lag&&&&&&&&&&&Manage&port&channel&(lag)&interfaces&&&&&&&&&&&&&&&&&&&&&&&&
arista_vlan&&&&&&&&&&Manage&VLAN&resources&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
assemble&&&&&&&&&&&&&Assembles&a&configuration&file&from&fragments&&&&&&&&&&&&&&&
assert&&&&&&&&&&&&&&&Fail&with&custom&message&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
at&&&&&&&&&&&&&&&&&&&Schedule&the&execution&of&a&command&or&script&file&via&the&a
authorized_key&&&&&&&Adds&or&removes&an&SSH&authorized&key&&&&&&&&&&&&&&&&&&&&&&&
azure&&&&&&&&&&&&&&&&create&or&terminate&a&virtual&machine&in&azure&&&&&&&&&&&&&&
bigip_facts&&&&&&&&&&Collect&facts&from&F5&BIG-IP&devices&&&&&&&&&&&&&&&&&&&&&&&&
bigip_monitor_http&&&Manages&F5&BIG-IP&LTM&http&monitors&&&&&&&&&&&&&&&&&&&&&&&&&
bigip_monitor_tcp&&&&Manages&F5&BIG-IP&LTM&tcp&monitors&&&&&&&&&&&&&&&&&&&&&&&&&&
bigip_node&&&&&&&&&&&Manages&F5&BIG-IP&LTM&nodes&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
bigip_pool&&&&&&&&&&&Manages&F5&BIG-IP&LTM&pools&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
bigip_pool_member&&&&Manages&F5&BIG-IP&LTM&pool&members&&&&&&&&&&&&&&&&&&&&&&&&&&
boundary_meter&&&&&&&Manage&boundary&meters&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
bzr&&&&&&&&&&&&&&&&&&Deploy&software&(or&files)&from&bzr&branches&&&&&&&&&&&&&&&&
campfire&&&&&&&&&&&&&Send&a&message&to&Campfire&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
capabilities&&&&&&&&&Manage&Linux&capabilities&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
cloudformation&&&&&&&create&a&AWS&CloudFormation&stack&&&&&&&&&&&&&&&&&&&&&&&&&&&
command&&&&&&&&&&&&&&Executes&a&command&on&a&remote&node&&&&&&&&&&&&&&&&&&&&&&&&&
composer&&&&&&&&&&&&&Dependency&Manager&for&PHP&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
copy&&&&&&&&&&&&&&&&&Copies&files&to&remote&locations.&&&&&&&&&&&&&&&&&&&&&&&&&&&
cpanm&&&&&&&&&&&&&&&&Manages&Perl&library&dependencies.&&&&&&&&&&&&&&&&&&&&&&&&&&
cron&&&&&&&&&&&&&&&&&Manage&cron.d&and&crontab&entries.&&&&&&&&&&&&&&&&&&&&&&&&&&
datadog_event&&&&&&&&Posts&events&to&DataDog&&service&&&&&&&&&&&&&&&&&&&&&&&&&&&&
debconf&&&&&&&&&&&&&&Configure&a&.deb&package&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
debug&&&&&&&&&&&&&&&&Print&statements&during&execution&&&&&&&&&&&&&&&&&&&&&&&&&&&
digital_ocean&&&&&&&&Create/delete&a&droplet/SSH_key&in&DigitalOcean&&&&&&&&&&&&&
digital_ocean_domain&Create/delete&a&DNS&record&in&DigitalOcean&&&&&&&&&&&&&&&&&&
digital_ocean_sshkey&Create/delete&an&SSH&key&in&DigitalOcean&&&&&&&&&&&&&&&&&&&&
django_manage&&&&&&&&Manages&a&Django&application.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
dnsimple&&&&&&&&&&&&&Interface&with&&(a&DNS&hosting&service).&&&&&&&&
dnsmadeeasy&&&&&&&&&&Interface&with&&(a&DNS&hosting&service).&&&&&
docker&&&&&&&&&&&&&&&manage&docker&containers&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
docker_image&&&&&&&&&manage&docker&images&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
easy_install&&&&&&&&&Installs&Python&libraries&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ec2&&&&&&&&&&&&&&&&&&create,&terminate,&start&or&stop&an&instance&in&ec2,&return&
ec2_ami&&&&&&&&&&&&&&create&or&destroy&an&image&in&ec2,&return&imageid&&&&&&&&&&&
ec2_ami_search&&&&&&&Retrieve&AWS&AMI&for&a&given&operating&system.&&&&&&&&&&&&&&
ec2_asg&&&&&&&&&&&&&&Create&or&delete&AWS&Autoscaling&Groups&&&&&&&&&&&&&&&&&&&&&
ec2_eip&&&&&&&&&&&&&&associate&an&EC2&elastic&IP&with&an&instance.&&&&&&&&&&&&&&&
ec2_elb&&&&&&&&&&&&&&De-registers&or&registers&instances&from&EC2&ELBs&&&&&&&&&&&
ec2_elb_lb&&&&&&&&&&&Creates&or&destroys&Amazon&ELB.&-&Returns&information&about&
ec2_facts&&&&&&&&&&&&Gathers&facts&about&remote&hosts&within&ec2&(aws)&&&&&&&&&&&
ec2_group&&&&&&&&&&&&maintain&an&ec2&VPC&security&group.&&&&&&&&&&&&&&&&&&&&&&&&&
ec2_key&&&&&&&&&&&&&&maintain&an&ec2&key&pair.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ec2_lc&&&&&&&&&&&&&&&Create&or&delete&AWS&Autoscaling&Launch&Configurations&&&&&&
ec2_metric_alarm&&&&&Create/update&or&delete&AWS&Cloudwatch&'metric&alarms'&&&&&&
ec2_scaling_policy&&&Create&or&delete&AWS&scaling&policies&for&Autoscaling&groups
ec2_snapshot&&&&&&&&&creates&a&snapshot&from&an&existing&volume&&&&&&&&&&&&&&&&&&
ec2_tag&&&&&&&&&&&&&&create&and&remove&tag(s)&to&ec2&resources.&&&&&&&&&&&&&&&&&&
ec2_vol&&&&&&&&&&&&&&create&and&attach&a&volume,&return&volume&id&and&device&map.
ec2_vpc&&&&&&&&&&&&&&configure&AWS&virtual&private&clouds&&&&&&&&&&&&&&&&&&&&&&&&
ejabberd_user&&&&&&&&Manages&users&for&ejabberd&servers&&&&&&&&&&&&&&&&&&&&&&&&&&
elasticache&&&&&&&&&&Manage&cache&clusters&in&Amazon&Elasticache.&&&&&&&&&&&&&&&&
facter&&&&&&&&&&&&&&&Runs&the&discovery&program&`facter'&on&the&remote&system...&
fail&&&&&&&&&&&&&&&&&Fail&with&custom&message&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
fetch&&&&&&&&&&&&&&&&Fetches&a&file&from&remote&nodes&&&&&&&&&&&&&&&&&&&&&&&&&&&&
file&&&&&&&&&&&&&&&&&Sets&attributes&of&files&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
filesystem&&&&&&&&&&&Makes&file&system&on&block&device&&&&&&&&&&&&&&&&&&&&&&&&&&&
fireball&&&&&&&&&&&&&Enable&fireball&mode&on&remote&node&&&&&&&&&&&&&&&&&&&&&&&&&
firewalld&&&&&&&&&&&&Manage&arbitrary&ports/services&with&firewalld&&&&&&&&&&&&&&
flowdock&&&&&&&&&&&&&Send&a&message&to&a&flowdock&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
gc_storage&&&&&&&&&&&This&module&manages&objects/buckets&in&Google&Cloud&Storage.
gce&&&&&&&&&&&&&&&&&&create&or&terminate&GCE&instances&&&&&&&&&&&&&&&&&&&&&&&&&&&
gce_lb&&&&&&&&&&&&&&&create/destroy&GCE&load-balancer&resources&&&&&&&&&&&&&&&&&&
gce_net&&&&&&&&&&&&&&create/destroy&GCE&networks&and&firewall&rules&&&&&&&&&&&&&&
gce_pd&&&&&&&&&&&&&&&utilize&GCE&persistent&disk&resources&&&&&&&&&&&&&&&&&&&&&&&
gem&&&&&&&&&&&&&&&&&&Manage&Ruby&gems&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
get_url&&&&&&&&&&&&&&Downloads&files&from&HTTP,&HTTPS,&or&FTP&to&node&&&&&&&&&&&&
git&&&&&&&&&&&&&&&&&&Deploy&software&(or&files)&from&git&checkouts&&&&&&&&&&&&&&&
github_hooks&&&&&&&&&Manages&github&service&hooks.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
glance_image&&&&&&&&&Add/Delete&images&from&glance&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
group&&&&&&&&&&&&&&&&Add&or&remove&groups&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
group_by&&&&&&&&&&&&&Create&Ansible&groups&based&on&facts&&&&&&&&&&&&&&&&&&&&&&&&
grove&&&&&&&&&&&&&&&&Sends&a&notification&to&a&grove.io&channel&&&&&&&&&&&&&&&&&&
hg&&&&&&&&&&&&&&&&&&&Manages&Mercurial&(hg)&repositories.&&&&&&&&&&&&&&&&&&&&&&&&
hipchat&&&&&&&&&&&&&&Send&a&message&to&hipchat&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
homebrew&&&&&&&&&&&&&Package&manager&for&Homebrew&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
homebrew_cask&&&&&&&&Install/uninstall&homebrew&casks.&&&&&&&&&&&&&&&&&&&&&&&&&&&
homebrew_tap&&&&&&&&&Tap&a&Homebrew&repository.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
hostname&&&&&&&&&&&&&Manage&hostname&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
htpasswd&&&&&&&&&&&&&manage&user&files&for&basic&authentication&&&&&&&&&&&&&&&&&&
include_vars&&&&&&&&&Load&variables&from&files,&dynamically&within&a&task.&&&&&&&
ini_file&&&&&&&&&&&&&Tweak&settings&in&INI&files&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
irc&&&&&&&&&&&&&&&&&&Send&a&message&to&an&IRC&channel&&&&&&&&&&&&&&&&&&&&&&&&&&&&
jabber&&&&&&&&&&&&&&&Send&a&message&to&jabber&user&or&chat&room&&&&&&&&&&&&&&&&&&
jboss&&&&&&&&&&&&&&&&deploy&applications&to&JBoss&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
jira&&&&&&&&&&&&&&&&&create&and&modify&issues&in&a&JIRA&instance&&&&&&&&&&&&&&&&&
kernel_blacklist&&&&&Blacklist&kernel&modules&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
keystone_user&&&&&&&&Manage&OpenStack&Identity&(keystone)&users,&tenants&and&role
layman&&&&&&&&&&&&&&&Manage&Gentoo&overlays&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
librato_annotation&&&create&an&annotation&in&librato&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
lineinfile&&&&&&&&&&&Ensure&a&particular&line&is&in&a&file,&or&replace&an&existin
linode&&&&&&&&&&&&&&&create&/&delete&/&stop&/&restart&an&instance&in&Linode&Publi
lldp&&&&&&&&&&&&&&&&&get&details&reported&by&lldp&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
locale_gen&&&&&&&&&&&Creates&of&removes&locales.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
logentries&&&&&&&&&&&Module&for&tracking&logs&via&&&&&&&&&&&&&&&&&&
lvg&&&&&&&&&&&&&&&&&&Configure&LVM&volume&groups&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
lvol&&&&&&&&&&&&&&&&&Configure&LVM&logical&volumes&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
macports&&&&&&&&&&&&&Package&manager&for&MacPorts&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
mail&&&&&&&&&&&&&&&&&Send&an&email&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
modprobe&&&&&&&&&&&&&Add&or&remove&kernel&modules&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
mongodb_user&&&&&&&&&Adds&or&removes&a&user&from&a&MongoDB&database.&&&&&&&&&&&&&
monit&&&&&&&&&&&&&&&&Manage&the&state&of&a&program&monitored&via&Monit&&&&&&&&&&&
mount&&&&&&&&&&&&&&&&Control&active&and&configured&mount&points&&&&&&&&&&&&&&&&&&
mqtt&&&&&&&&&&&&&&&&&Publish&a&message&on&an&MQTT&topic&for&the&IoT&&&&&&&&&&&&&&
mysql_db&&&&&&&&&&&&&Add&or&remove&MySQL&databases&from&a&remote&host.&&&&&&&&&&&
mysql_replication&&&&Manage&MySQL&replication&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
mysql_user&&&&&&&&&&&Adds&or&removes&a&user&from&a&MySQL&database.&&&&&&&&&&&&&&&
mysql_variables&&&&&&Manage&MySQL&global&variables&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
nagios&&&&&&&&&&&&&&&Perform&common&tasks&in&Nagios&related&to&downtime&and&notif
netscaler&&&&&&&&&&&&Manages&Citrix&NetScaler&entities&&&&&&&&&&&&&&&&&&&&&&&&&&&
newrelic_deployment&&Notify&newrelic&about&app&deployments&&&&&&&&&&&&&&&&&&&&&&&
nexmo&&&&&&&&&&&&&&&&Send&a&SMS&via&nexmo&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
nova_compute&&&&&&&&&Create/Delete&VMs&from&OpenStack&&&&&&&&&&&&&&&&&&&&&&&&&&&&
nova_keypair&&&&&&&&&Add/Delete&key&pair&from&nova&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
npm&&&&&&&&&&&&&&&&&&Manage&node.js&packages&with&npm&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ohai&&&&&&&&&&&&&&&&&Returns&inventory&data&from&`Ohai'&&&&&&&&&&&&&&&&&&&&&&&&&&
open_iscsi&&&&&&&&&&&Manage&iscsi&targets&with&open-iscsi&&&&&&&&&&&&&&&&&&&&&&&&
openbsd_pkg&&&&&&&&&&Manage&packages&on&OpenBSD.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
openvswitch_bridge&&&Manage&Open&vSwitch&bridges&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
openvswitch_port&&&&&Manage&Open&vSwitch&ports&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
opkg&&&&&&&&&&&&&&&&&Package&manager&for&OpenWrt&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
osx_say&&&&&&&&&&&&&&Makes&an&OSX&computer&to&speak.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ovirt&&&&&&&&&&&&&&&&oVirt/RHEV&platform&management&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
pacman&&&&&&&&&&&&&&&Manage&packages&with&`pacman'&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
pagerduty&&&&&&&&&&&&Create&PagerDuty&maintenance&windows&&&&&&&&&&&&&&&&&&&&&&&&
pause&&&&&&&&&&&&&&&&Pause&playbook&execution&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ping&&&&&&&&&&&&&&&&&Try&to&connect&to&host&and&return&`pong'&on&success.&&&&&&&&
pingdom&&&&&&&&&&&&&&Pause/unpause&Pingdom&alerts&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
pip&&&&&&&&&&&&&&&&&&Manages&Python&library&dependencies.&&&&&&&&&&&&&&&&&&&&&&&&
pkgin&&&&&&&&&&&&&&&&Package&manager&for&SmartOS&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
pkgng&&&&&&&&&&&&&&&&Package&manager&for&FreeBSD&&=&9.0&&&&&&&&&&&&&&&&&&&&&&&&&&
pkgutil&&&&&&&&&&&&&&Manage&CSW-Packages&on&Solaris&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
portage&&&&&&&&&&&&&&Package&manager&for&Gentoo&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
portinstall&&&&&&&&&&Installing&packages&from&FreeBSD's&ports&system&&&&&&&&&&&&&
postgresql_db&&&&&&&&Add&or&remove&PostgreSQL&databases&from&a&remote&host.&&&&&&
postgresql_privs&&&&&Grant&or&revoke&privileges&on&PostgreSQL&database&objects...
postgresql_user&&&&&&Adds&or&removes&a&users&(roles)&from&a&PostgreSQL&database..
quantum_floating_ip&&Add/Remove&floating&IP&from&an&instance&&&&&&&&&&&&&&&&&&&&&
quantum_floating_ip_associate&Associate&or&disassociate&a&particular&floating&IP&with&an&i
quantum_network&&&&&&Creates/Removes&networks&from&OpenStack&&&&&&&&&&&&&&&&&&&&&
quantum_router&&&&&&&Create&or&Remove&router&from&openstack&&&&&&&&&&&&&&&&&&&&&&
quantum_router_gateway&set/unset&a&gateway&interface&for&the&router&with&the&specif
quantum_router_interface&Attach/Dettach&a&subnet's&interface&to&a&router&&&&&&&&&&&&&
quantum_subnet&&&&&&&Add/Remove&floating&IP&from&an&instance&&&&&&&&&&&&&&&&&&&&&
rabbitmq_parameter&&&Adds&or&removes&parameters&to&RabbitMQ&&&&&&&&&&&&&&&&&&&&&&
rabbitmq_plugin&&&&&&Adds&or&removes&plugins&to&RabbitMQ&&&&&&&&&&&&&&&&&&&&&&&&&
rabbitmq_policy&&&&&&Manage&the&state&of&policies&in&RabbitMQ.&&&&&&&&&&&&&&&&&&&
rabbitmq_user&&&&&&&&Adds&or&removes&users&to&RabbitMQ&&&&&&&&&&&&&&&&&&&&&&&&&&&
rabbitmq_vhost&&&&&&&Manage&the&state&of&a&virtual&host&in&RabbitMQ&&&&&&&&&&&&&&
raw&&&&&&&&&&&&&&&&&&Executes&a&low-down&and&dirty&SSH&command&&&&&&&&&&&&&&&&&&&
rax&&&&&&&&&&&&&&&&&&create&/&delete&an&instance&in&Rackspace&Public&Cloud&&&&&&&
rax_cbs&&&&&&&&&&&&&&Manipulate&Rackspace&Cloud&Block&Storage&Volumes&&&&&&&&&&&&
rax_cbs_attachments&&Manipulate&Rackspace&Cloud&Block&Storage&Volume&Attachments.
rax_clb&&&&&&&&&&&&&&create&/&delete&a&load&balancer&in&Rackspace&Public&Cloud...
rax_clb_nodes&&&&&&&&add,&modify&and&remove&nodes&from&a&Rackspace&Cloud&Load&Bal
rax_dns&&&&&&&&&&&&&&Manage&domains&on&Rackspace&Cloud&DNS&&&&&&&&&&&&&&&&&&&&&&&
rax_dns_record&&&&&&&Manage&DNS&records&on&Rackspace&Cloud&DNS&&&&&&&&&&&&&&&&&&&
rax_facts&&&&&&&&&&&&Gather&facts&for&Rackspace&Cloud&Servers&&&&&&&&&&&&&&&&&&&&
rax_files&&&&&&&&&&&&Manipulate&Rackspace&Cloud&Files&Containers&&&&&&&&&&&&&&&&&
rax_files_objects&&&&Upload,&download,&and&delete&objects&in&Rackspace&Cloud&File
rax_identity&&&&&&&&&Load&Rackspace&Cloud&Identity&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
rax_keypair&&&&&&&&&&Create&a&keypair&for&use&with&Rackspace&Cloud&Servers&&&&&&&
rax_meta&&&&&&&&&&&&&Manipulate&metadata&for&Rackspace&Cloud&Servers&&&&&&&&&&&&&
rax_network&&&&&&&&&&create&/&delete&an&isolated&network&in&Rackspace&Public&Clou
rax_queue&&&&&&&&&&&&create&/&delete&a&queue&in&Rackspace&Public&Cloud&&&&&&&&&&&
rax_scaling_group&&&&Manipulate&Rackspace&Cloud&Autoscale&Groups&&&&&&&&&&&&&&&&&
rax_scaling_policy&&&Manipulate&Rackspace&Cloud&Autoscale&Scaling&Policy&&&&&&&&&
rds&&&&&&&&&&&&&&&&&&create,&delete,&or&modify&an&Amazon&rds&instance&&&&&&&&&&&&
rds_param_group&&&&&&manage&RDS&parameter&groups&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
rds_subnet_group&&&&&manage&RDS&database&subnet&groups&&&&&&&&&&&&&&&&&&&&&&&&&&&
redhat_subscription&&Manage&Red&Hat&Network&registration&and&subscriptions&using&
redis&&&&&&&&&&&&&&&&Various&redis&commands,&slave&and&flush&&&&&&&&&&&&&&&&&&&&&
replace&&&&&&&&&&&&&&Replace&all&instances&of&a&particular&string&in&a&file&using
rhn_channel&&&&&&&&&&Adds&or&removes&Red&Hat&software&channels&&&&&&&&&&&&&&&&&&&
rhn_register&&&&&&&&&Manage&Red&Hat&Network&registration&using&the&`rhnreg_ks'&co
riak&&&&&&&&&&&&&&&&&This&module&handles&some&common&Riak&operations&&&&&&&&&&&&&
rollbar_deployment&&&Notify&Rollbar&about&app&deployments&&&&&&&&&&&&&&&&&&&&&&&&
route53&&&&&&&&&&&&&&add&or&delete&entries&in&Amazons&Route53&DNS&service&&&&&&&&
rpm_key&&&&&&&&&&&&&&Adds&or&removes&a&gpg&key&from&the&rpm&db&&&&&&&&&&&&&&&&&&&
s3&&&&&&&&&&&&&&&&&&&idempotent&S3&module&putting&a&file&into&S3.&&&&&&&&&&&&&&&&
script&&&&&&&&&&&&&&&Runs&a&local&script&on&a&remote&node&after&transferring&it..
seboolean&&&&&&&&&&&&Toggles&SELinux&booleans.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
selinux&&&&&&&&&&&&&&Change&policy&and&state&of&SELinux&&&&&&&&&&&&&&&&&&&&&&&&&&
service&&&&&&&&&&&&&&Manage&services.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
set_fact&&&&&&&&&&&&&Set&host&facts&from&a&task&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
setup&&&&&&&&&&&&&&&&Gathers&facts&about&remote&hosts&&&&&&&&&&&&&&&&&&&&&&&&&&&&
shell&&&&&&&&&&&&&&&&Execute&commands&in&nodes.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
slack&&&&&&&&&&&&&&&&Send&Slack&notifications&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
slurp&&&&&&&&&&&&&&&&Slurps&a&file&from&remote&nodes&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
sns&&&&&&&&&&&&&&&&&&Send&Amazon&Simple&Notification&Service&(SNS)&messages&&&&&&
stackdriver&&&&&&&&&&Send&code&deploy&and&annotation&events&to&stackdriver&&&&&&&
stat&&&&&&&&&&&&&&&&&retrieve&file&or&file&system&status&&&&&&&&&&&&&&&&&&&&&&&&&
subversion&&&&&&&&&&&Deploys&a&subversion&repository.&&&&&&&&&&&&&&&&&&&&&&&&&&&&
supervisorctl&&&&&&&&Manage&the&state&of&a&program&or&group&of&programs&running&v
svr4pkg&&&&&&&&&&&&&&Manage&Solaris&SVR4&packages&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
swdepot&&&&&&&&&&&&&&Manage&packages&with&swdepot&package&manager&(HP-UX)&&&&&&&&
synchronize&&&&&&&&&&Uses&rsync&to&make&synchronizing&file&paths&in&your&playbook
sysctl&&&&&&&&&&&&&&&Manage&entries&in&sysctl.conf.&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
template&&&&&&&&&&&&&Templates&a&file&out&to&a&remote&server.&&&&&&&&&&&&&&&&&&&&
twilio&&&&&&&&&&&&&&&Sends&a&text&message&to&a&mobile&phone&through&Twilio.&&&&&&
typetalk&&&&&&&&&&&&&Send&a&message&to&typetalk&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ufw&&&&&&&&&&&&&&&&&&Manage&firewall&with&UFW&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
unarchive&&&&&&&&&&&&Copies&an&archive&to&a&remote&location&and&unpack&it&&&&&&&&
uri&&&&&&&&&&&&&&&&&&Interacts&with&webservices&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
urpmi&&&&&&&&&&&&&&&&Urpmi&manager&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
user&&&&&&&&&&&&&&&&&Manage&user&accounts&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
virt&&&&&&&&&&&&&&&&&Manages&virtual&machines&supported&by&libvirt&&&&&&&&&&&&&&&
vsphere_guest&&&&&&&&Create/delete/manage&a&guest&VM&through&VMware&vSphere.&&&&&
wait_for&&&&&&&&&&&&&Waits&for&a&condition&before&continuing.&&&&&&&&&&&&&&&&&&&&
win_feature&&&&&&&&&&Installs&and&uninstalls&Windows&Features&&&&&&&&&&&&&&&&&&&&
win_get_url&&&&&&&&&&Fetches&a&file&from&a&given&URL&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
win_group&&&&&&&&&&&&Add&and&remove&local&groups&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
win_msi&&&&&&&&&&&&&&Installs&and&uninstalls&Windows&MSI&files&&&&&&&&&&&&&&&&&&&
win_ping&&&&&&&&&&&&&A&windows&version&of&the&classic&ping&module.&&&&&&&&&&&&&&&
win_service&&&&&&&&&&Manages&Windows&services&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
win_stat&&&&&&&&&&&&&returns&information&about&a&Windows&file&&&&&&&&&&&&&&&&&&&&
win_user&&&&&&&&&&&&&Manages&local&Windows&user&accounts&&&&&&&&&&&&&&&&&&&&&&&&&
xattr&&&&&&&&&&&&&&&&set/retrieve&extended&attributes&&&&&&&&&&&&&&&&&&&&&&&&&&&&
yum&&&&&&&&&&&&&&&&&&Manages&packages&with&the&`yum'&package&manager&&&&&&&&&&&&&
zfs&&&&&&&&&&&&&&&&&&Manage&zfs&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
zypper&&&&&&&&&&&&&&&Manage&packages&on&SuSE&and&openSuSE&&&&&&&&&&&&&&&&&&&&&&&&
zypper_repository&&&&Add&and&remove&Zypper&repositories本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)

我要回帖

更多关于 python m pdb 的文章

 

随机推荐