Ansible Command Parameters Introduction
-M: the module to be executed defaults to COMMAND-A: The parameter of the module-u:ssh the user name of the connection, which can be configured by default in Root,ansible.cfg-K: Prompts for an SSH login password. When using password Authentication with-s:sudo run-u:sudo to that user, the default is root-k: Prompt for sudo password, when not nopasswd mode use-c: Just test what will change what content, will not really go to do the C: Connection type (default= Smart)-f:fork How many processes are processed concurrently, the default is 5-I: Specify the Hosts file path, the default default=/etc/ansible/hosts-i specifies pattern, the
Field name reference value meaning
Ansible_architecture x86_64 Controlled node system framework Ansible_distribution CentOS controlled node operating system release Ansible_distribution_version 6.3 controlled The version number of the node release version Ansible_domain kisops.org the master domain name of the managed node Ansible_fqdn site01.kisops.org the full machine name of the controlled node ansible_interfaces ["Lo", "eth 0 "] Lists all network cards of the managed node Ansible_kernel 2.6.32-431.5.1.el6.x86_64 The kernel version number of the managed node ANSIBLE_MEMTOTAL_MB 30099 managed node total memory size (trillion) ansible_pro Cessor_count 24 The CPU core of the managed node ansible_virualization_role the identity of the guest managed node: Host is the host and guest is the virtual machine ansible_virtualization_type Virtualization types for KVM managed nodes
This article is from the "LINUX Super Dream" blog, make sure to keep this source http://215687833.blog.51cto.com/6724358/1888703
Ansible Command Parameters Introduction