Ansible Command Parameters Introduction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.