涛子 - 简单就是美

成单纯魁增,永继振国兴,克复宗清政,广开家必升

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  428 随笔 :: 0 文章 :: 19 评论 :: 22万 阅读

http://docs.ansible.com/list_of_all_modules.html

Commands Modules

command - Executes a command on a remote node
raw - Executes a low-down and dirty SSH command
script - Runs a local script on a remote node after transferring it
shell - Execute commands in nodes.

Files Modules

acl - Sets and retrieves file ACL information.
assemble - Assembles a configuration file from fragments
copy - Copies files to remote locations.
fetch - Fetches a file from remote nodes
file - Sets attributes of files
ini_file - Tweak settings in INI files
lineinfile - Ensure a particular line is in a file, or replace an existing line using a back-referenced regular expression.
patch (E) - 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 - Uses rsync to make synchronizing file paths in your playbooks quick and easy.
template - Templates a file out to a remote server.
unarchive - Copies an archive to a remote location and unpack it
xattr - set/retrieve extended attributes

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

Network Modules

haproxy (E) - An Ansible module to handle states enable/disable server and set weight to backend host in haproxy using socket commands.
lldp (E) - get details reported by lldp
get_url - Downloads files from HTTP, HTTPS, or FTP to node
uri - Interacts with webservices

Packaging Modules

rpm_key - Adds or removes a gpg key from the rpm db
yum - Manages packages with the I(yum) package manager

Source Control Modules

git - Deploy software (or files) from git checkouts
subversion - Deploys a subversion repository.

System Modules

alternatives (E) - Manages alternative programs for common commands
at (E) - Schedule the execution of a command or script file via the at command.
authorized_key - Adds or removes an SSH authorized key
capabilities (E) - Manage Linux capabilities
cron - Manage cron.d and crontab entries.
crypttab (E) - Encrypted Linux block devices
debconf (E) - Configure a .deb package
facter (E) - Runs the discovery program I(facter) on the remote system
filesystem (E) - Makes file system on block device
firewalld (E) - Manage arbitrary ports/services with firewalld
getent (E) - a wrapper to the unix getent utility
gluster_volume (E) - Manage GlusterFS volumes
group - Add or remove groups
hostname - Manage hostname
kernel_blacklist (E) - Blacklist kernel modules
locale_gen (E) - Creates or removes locales.
lvg (E) - Configure LVM volume groups
lvol (E) - Configure LVM logical volumes
modprobe (E) - Add or remove kernel modules
mount - Control active and configured mount points
ohai (E) - Returns inventory data from I(Ohai)
open_iscsi (E) - Manage iscsi targets with open-iscsi
ping - Try to connect to host and return C(pong) on success.
seboolean - Toggles SELinux booleans.
selinux - Change policy and state of SELinux
service - Manage services.
setup - Gathers facts about remote hosts
sysctl - Manage entries in sysctl.conf.
ufw (E) - Manage firewall with UFW
user - Manage user accounts
zfs (E) - Manage zfs

posted on   北京涛子  阅读(782)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
点击右上角即可分享
微信分享提示