Ansible-command模块和shell模块
ansible command与shell模块 两个模块都是用于执行linux命令的,这对于命令熟悉的工程师来说,用起来非常high。 shell模块与command模块差不多(command模块不能执行一些类似$HOME,>,<,|等符号,但shell可以) https://docs.ansible.com/ansible/latest/modules/command_module.html https://docs.ansible.com/ansible/latest/modules/shell_module.html