If you want to run a command through the shell (say you are using, |, and so on), you actually want the module instead. To create command tasks that are easier to read than the ones using space-delimited arguments, pass parameters using the args task keyword or use cmd parameter.Įither a free form command or cmd parameter is required, see the examples.įor Windows targets, use the _command module instead. Use the module if you need these features. The command(s) will not be processed through the shell, so variables like $HOSTNAME and operations like "*", "", "|", " " and "&" will not work. The given command will be executed on all selected nodes. The command module takes the command name followed by a list of space-delimited arguments. Module documentation and to avoid conflicting with other collections that may have However, we recommend you use the Fully Qualified Collection Name (FQCN) for easy linking to the In most cases, you can use the shortĬommand even without specifying the collections keyword. This module is part of ansible-core and included in all Ansible Controlling how Ansible behaves: precedence rules.Collections in the Theforeman Namespace.Collections in the Telekom_mms Namespace.Collections in the T_systems_mms Namespace.Collections in the Servicenow Namespace.Collections in the Purestorage Namespace.Collections in the Openvswitch Namespace.Collections in the Netapp_eseries Namespace.Collections in the Kubernetes Namespace.Collections in the Junipernetworks Namespace.Collections in the F5networks Namespace.Collections in the Containers Namespace.Collections in the Cloudscale_ch Namespace.Collections in the Chocolatey Namespace.Collections in the Check_point Namespace.Virtualization and Containerization Guides.Protecting sensitive data with Ansible vault.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |