GithubHelp home page GithubHelp logo

ansibletutorial's Introduction

Ansible 实例教程

使用 Ansible 的基本条件

以下条件建议使用 Shell 脚本方式完成自动化或手工配置完成。

  • 目标主机已安装了 openssh-server
  • 已经配置完成了 SSH 免密登录,推荐配置以支持 root 用户免密登录

Shell 脚本方式自动配置的实例

ssh-copy-id/

# 顺序执行以下2个脚本
# 按照提示,依次输入远程主机的用户登录密码
0_batch_ssh-copy-id.sh

# 按照提示,输入远程主机非root用户的 su 密码
# 如果需要使用 sudo 密码,请修改 ssh-copy-id.yml 中的 become_method 值为 sudo
1_batch_ansible-playbook.sh

管理用户的实例

manage-users/

示例 manage-users/group_vars/manage-users/vault.yml 文件使用的解密口令为: password

运维配置任务实例

manage-tasks/

ansibletutorial's People

Contributors

c4pr1c3 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.