ansible common modules
##Some common modules
[cloud modules]
[clustering modules]
[command modules]
command - executes a command on a remote node
expect - executes a command and responds to prompts
raw -- executes a low-down and dirty SSH command
shell - executes commands in nodes
script - runs alocal script on a remote node after transferring it
telnet - executes a low-down and dirty telnet command
[crypto modules]
[databases modules]
mongodb_parameter - change an asministrative parameter on a mongodb server
mogodb_use - adds or remove a user form a mongodb database
mysql_db - add or remove mysql databases form 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
[file modules]
acl - sets and retrieves file ACL information
archive - creates a compressed archive of one or more files or trees
unarchive - unpacks an archive after(optionally) copying it from local machine
assemble - assembles a configuratuon file from fragments
blockinfile - insert/update/remove a text block surrounded by marker lines
copy - copies files to remote locations
fetch - fetches a file from remote nodes
file - set attributes of files
tempfile - creates temporary files and directories
find - return a list of files based on specific criteria
ini_file - tweak settings INI files
iso_extract - etract files from an ISO image
lineinfile - manage lines in text files
patch - apply patch files using the GNU patch tool
replace - replace all instances of a particular string in a file using a back-referenced regular expression
stat - retrieve file or file system status
synchronize - a wrapper around rsync to make common tasks in your playbooks quik and easy
template - templates a file out to remote server
xattr - manage user defined extended attributes
xml - manage bits and pieces of XML files or strings
[identify modules]
[inventory modules]
add_host - add a host(and alternatively a group) to the ansible-playbook in-memory inventory
group_by - create ansible groups based on facts
[messaging modules]
[monitoring modules]
[net tools modules]
haproxy - enable,disable,and set weights for HAProxy backend servers using socket commands
ip_netns - manage network namespaces
ipify_facts - retrieve the public IP of your internet gateway
ipinfoio_facts - retrieve IP geolcation facts of a host's IP address
lldp - get details reported by lldp
nmcli - manage networking
nsupdate - manage DNS records
get_url - downloads files from HTTP,HTTPS,or FTP to node
uri - interacts with webservices
ldap_attr - add or remove LDAP attribute values
ldap_entry - add or remove LDAP entries
[network modules]
net_interface - manage interface on network devices
[notification modules]
mail - send an email
say - makes a computer to speak
syslogger - log messages in the syslog
[packing modules]
easy_install - installs python libraries
npm - manage node.js packages with npm
pip manages python library dependencies
apt - manages apt-packages
apt_repository - add and remove APT repositories
apt_rpm - apt_rpm package manager
dnf - manages packages with the dnf package manager
yum - manages packages with the yum package manager
yum_repository - add or remove YUM repositories
[remote management modules]
foreman - manage foreman resources
ipmi_boot - management of order of boot devices
ipmi_power - power management for machine
[source control modules]
git - deploy software(or files) from git checkouts
git_config - read and write git configuration
gitlab_group - creates/updates/deletes gitlab groups
gitlab_project - creates/updates/deletes gitlab projects
gitlab_user - creates/updates/deletes gitlab users
[storage modules]
[system modules]
alternatives - manages alternative programs for common commands
at - schedule the execution of a command or script file via the at command
cron - manage cron.d and crontab entries
cronvar - manage variables in crontabs
authorized_key - adds or removes an SSH authorized key
known_hosts - add or remove a host form the know_hosts file
capabilities - manage linux capabilities
facter - runs the discovery program facter on teh remote system
locale_gen - creates or removes locales
filesystem - makes a filessystem
user - manage user accounts
group - add or remove groups
hostname - manage hostname
firewalld - manage arbitrary ports/services with firewalld
iptables -modify the systems iptables
ufw - manage firewall with UFW
interfaces_file - tweak settings in /etc/network/interfaces files
lvg - configure LVM volume groups
lvol - configure LVM logical volumes
make - runs targets in a makefile
modprobe - load or unload kernel modules
mount - control active and configured mount points
parted - configure block device partitions
nosh - manage services with nosh
open_iscsi - manage iscsi targets with open-iscsi
pam_limits - modify linux PAM limits
pamd - manage pam modules
ping - try to connect to host, verify a usable python and return pong on sucess
puppet - runs puppet
seboolean - manages SELinux booleans
selinux - change policy and state of SELinux
selinux_permissive - change permissive domain in SELinux policy
seport - manages SELinux network port type definitions
service - manage services
service_facts - return service state information as fact data
setup - gathers facts about remote hosts
sysctl - manage entries in sysctl.conf
systemd - manage services
timezone - configure timezone setting
[utiliies modules]
accelerate - enable accelerated mode on remote node
meta - execute ansible 'actions'
assert - asserts given expressions are true
async_status - obtain status of asynchronous task
debug - print statements during execution
fail - fail with custom message
import_playbook - import a playbook
import_role - import a role into a play
import_tasks - import a task list
include - include a play or task list
include_role - load and execute a role
include_tasks - dynamically include a task list
include_vars - load variables from files, dynamically within a task
pause - pause playbook execution
set_fact - set host facts from a task
set_stats - set stats for the current ansible run
wait_for - waits for a condition before continuing
wait_for_connection - waits untils remote system is reachable/usable
[web infrustructure modules]
[windows modules]
ansible common modules的更多相关文章
- [Webpack 2] Chunking common modules from multiple apps with the Webpack CommonsChunkPlugin
If you have a multi-page application (as opposed to a single page app), you’re likely sharing module ...
- ansible的modules
fetch :从远端服务器拉取文件到本地 dest 依赖 本地存放拉取到的文件路径, 如果flat=yes,则会在该路径下直接存放文件, 如果flat=no,则会在该路径下生成每个服务器的in ...
- ansible基础-playbooks
1. playbooks介绍 如果说ansible的modules是工具,inventory配置文件是原材料,那么playbook就是一封说明书,这里会记录任务是如何如何执行的,当然如果你愿意,这里也 ...
- 初探ansible
Ansible 基于ssh的自动化运维工具 ansible 配置文件详解 ansible.cfg 文件 文件默认放置在/etc/ansible下,ansible读取配置文件的顺序是: 当前命令执行目录 ...
- Ansible学习实战手记-你想要知道的可能都在这里了
最近接触了ansible工具,查找了一些资料,也做了一些总结.希望能给刚接触的新手带来一些帮助. 此总结有实际例子,大部分也是从实践中用到才逐一总结的. 当然可能肯定一定会存在一些错误和纰漏,还望大家 ...
- ansible playbook模式及语法
一.什么是playbook及其组成 什么是playbook playbook 翻译过来就是"剧本" playbook的组成 play:定义的是主机的角色 task:定义的是具体执行 ...
- ansible --help 文档
> ansible --help Usage: ansible <host-pattern> [options] Define and run a single task 'play ...
- Ansible之入门简介
一.ansible简介 ansible是一款由python语言编写的一款自动化运维工具,它集合了众多运维工具(puppet.cfengine.chef.func.fabric)优点,实现了批量系统配置 ...
- Ansible快速开始-指挥集群
Ansible可以集中地控制多个节点,批量地执行ssh命令.由于其使用ssh进行操作,因此远端服务器除了安装openssh-server(一般服务器已经内置)之外,不需要安装额外的软件,因此使用非常简 ...
随机推荐
- P2657 [SCOI2009]windy数 数位dp
数位dp之前完全没接触过,所以NOIP之前搞一下.数位dp就是一种dp,emm……用来求解区间[L,R]内满足某个性质的数的个数,且这个性质与数的大小无关. 在这道题中,dp[i][j]代表考虑了i位 ...
- B1877 [SDOI2009]晨跑 费用流
其实之前写过一个板子,但是一点印象都没有,所以今天重写了一下,顺便把这个题当成板子就行了. 其实费用流就是把bfs换成spfa,但是中间有一个原则,就是费用优先,在费用(就是c)上跑spfa,顺便求出 ...
- MSP430 使用时 RST引脚一定拉高
因为这次省去了RESET按键,RST没做任何处理,程序下载完之后插上电池无法运行,最终原因:RST引脚没有拉高.呼呼切记啊
- PCB genesis Slot槽转钻孔(不用G85命令)实现方法
PCB钻Slot槽一般都采用G85命令钻槽孔,而采用G85命令工程CAM无法准确的知道Slot槽钻多少个孔,并不能决定钻槽孔的顺序,因为采用G85命令钻孔密度与钻槽顺序由钻机本身决定的.在这里介绍一种 ...
- SpringBoot入门之HelloWorld
1.SpringBoot简介 百度百科:Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程.该框架使用了特定的方式来进行配置,从而 ...
- 【洛谷2469/BZOJ1927】[SDOI2010]星际竞速(费用流/最小路径覆盖)
题目: 洛谷2469 分析: 把题目翻译成人话:给一个带边权的DAG,求一个路径覆盖方案使路径边权总和最小.从点\(i\)开始的路径需要额外加上\(A_i\)的权值. 回xian忆chang一xue下 ...
- 大数据~说说Hadoop
Hadoop是一个由Apache基金会所开发的分布式系统基础架构. 用户可以在不了解分布式底层细节的情况下,开发分布式程序.充分利用集群的威力进行高速运算和存储. Hadoop实现了一个分布式文件系 ...
- Android FileProvider相关 Failed to find configured root that contains
问题: 使用FileProvider构造SD卡中文件uri时异常 java.lang.IllegalArgumentException: Failed to find configured root ...
- Android开发笔记(8)——调用子Activity
转载请注明:http://www.cnblogs.com/igoslly/p/6853730.html 调用子Activity 需要子Activity返回值 MainActivity使用start ...
- webstorm中配置过visualsvn,后面做更改要更换authentication realm的解决办法
找这个找了好久,一直改不过来,终于找到了解决办法 首先,在提交代码时提示: 但是我的authentication realm已经时这个了,并且账号和密码也改了,所以要更改authentication ...