Ansible two or three things

Source: Internet
Author: User

Now, slowly test the function of ansible, but the overall feeling is that it is slower than saltstack, as if there is a bit of instability ....

But, the performance of the local environment, is still good ...


There are a few things to note:

If host is not a standard port, write into the/etc/ansible/hosts file, and the corresponding login account will be written as well. Ansible_ssh_user=anin

Second, if you want to enable SSH key login, it is important to note that the public's method is to add pub public key to the managed server side of the Authorized_keys, and then use the private key of Ansible login account to respond ... Therefore, if you switch the account on the ansible machine, it is no longer connected. The command is as follows:

Ansible ' '-m authorized_key-m shell-a "ls"

You can ...

Ansible two or three things

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: 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.