ansible improved version (2) - Getting ansible playbook and write specifications

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_36199640/article/details/102761972

playbook language Introduction

playbook as ansible unique term that ansible configuration framework to deploy orchestration language, grammatical structure itself is easy to read and a wealth of embedded module is very easy to write us a remote system deployment strategy, playbook based file format yaml format, you can playbook called the total score, each file can be called a yaml movement playbook, in this playbook can write one or more task as the notes of the movement, play the music played by ansible related to command, you can our pre-written mission deployed in a specific arrangement to which a remote server, that is played to our listeners

playbook framework and format

test playbooks

  • Total file structure
inventory/
testenv
roles/
testbox/
task/
    main.yml
deploy.yml

Guess you like

Origin blog.csdn.net/qq_36199640/article/details/102761972