Ansible playbook component, ansibleplaybook
Core elements of playbook:
Tasks: Task
Variables: Variable
Templates: Template
Handlers: Processor
Roles: Role
Organization format: YAML (also known as a Markup Language)
Syntax: (the list is represented by a horizontal bar. Key-value pairs are separated by colons, and other key-value pairs can be nested in key-value pairs)
Example: name: tom
Age: 21
Gender: Male
Playbook-Introduction: Playbooks is a mode different from the ansible command line execution mode, and its functions are more powerful and flexible. In simple terms, playbook is a very simple configuration management and multi-host deployment system. Unlike any existing mode, it can be used as a suitable basis for deploying complex applications. Playbook can be c
Ansible series (5): PlaybookBefore playbook
After the first two modules, I believe that anyone who uses shell will discover the power of ansible.
Here we will introduce playbook, a truly powerful place. Let you get rid of the difficulty of executing shell.Definition of Playbook
The definition of Playbook is difficult t
/
./Configure \-- Prefix =/usr/local/nginx \-- User = nginx \-- Group = nginx \With-http_stub_status_module
Make make install
Ln-S/usr/local/nginx/sbin/nginx/usr/local/sbin // create a soft connection for the system to identify nginx commandsScript Note: -- with-http_stub_status_module // support status statistics
2. Create nginx boot scriptVI/etc/init. d/nginx#! /Bin/bash# Chkconfig:-99 20# Description: nginx Service Control scriptProg = "/usr/local/nginx/sbin/nginx"Pidf = "/usr/local/nginx/lo
One, Sprint planning meeting: in This meeting we mainly discussed a few of the tasks we are doing, for example, in the beautification of buttons and add images we have published their own ideas, Zhowejie students also analyze our ideas to find the most appropriate method. In view of user profile and browse business information, after discussion also basically set a style. One of the most important is the design of the Business database table, is the
User feedback: OK.Number of users: 4Team Improvement advice: thinking is too limited, technology needs innovation.1. what needs to be improved in the first sprint phase of each member ?
Member NBSP;
need to improve Shaowen
need to mention High productivity, ability to innovate, ability to solve problems
Li Xin
Learn a little more knowledge
Chen Junqin
Playbook is a list of one or more "play"The main function of play is to dress up a pre-set host as a role defined in advance through the task in ansible. Fundamentally, the so-called task is nothing more than a call to Ansible's module. By organizing multiple play in one playbook, you can connect them to run in a pre-programmed mechanism.Playbook use Yaml language to write each ansible
After Ubuntu is installed on the real machine, the PlayBook NDK 2.0 Environment is installed on it. The installation process is not detailed. If you need to learn the detailed steps, refer to my friend berryreload's tutorial, the link is as follows:Http://www.bkjia.com/ OS /201203/122981.htmlAs mentioned by berryreload, after the PlayBook NDK 2.0 Environment is installed according to the standard process, t
need to send the key to the production environment host2. Upgrade and RollbackUpgradeAnsible-playbook/home/app/api.yml-vRolling backAnsible-playbook/home/app/api-rollback.yml-vAnsible-playbook followed by the Yml file path written earlier,-V is to display detailed execution information3. AttentionIf you perform an upgrade and rollback of the yml file in Jenkins,
Include:In a large complex architecture, the first problem is the growing playbook file size, a large playbook difficult to understand and maintain, the end method is to use include, your plays break down into different segments and then include them in the other plays . Different segments are categorized according to different purposes. All are included in the main plays . There are four types of inclusion
Cluster O M automation tool ansible uses playbook to install mysql Cluster
Last time I introduced how to use ansible playbook to install the zabbix client (http://www.bitsCN.com/article/52158.htm), this time I introduced how to use playbook to install mysql.
The following is the information for installing mysql:
Mysql_basedir:/data/mysql/basedir source code di
One, Sprint planning meeting:because of these two days of the course more reasons, the surface of the progress may not be much change, in fact, the team members have to improve the function before doing, the function is also in a hurry to complete. As the saying goes, slow work out of the deliberately, not because of the progress of a random do something to deal with. We will continue to try to catch up with the progress in the next time. Second,
One, Sprint planning meeting:now simply say today's meeting situation: the team members in addition to improve the functions previously done, but also to The implementation of the Carousel map to a fragment, easy to manage. Now also ready to implement the business to upload the image of the product this feature, although the progress is not fast, but the overall situation of the app is still good, we will continue to work hard. Second,
Complete the project today, integrate all the small partners ' modules and eliminate a series of bugs.To today found a lot of problems, but also summed up the harvest of this stage of the sprint, in the next few days I will continue to write the experience of their own program upload, and then proceed to the next stage of the discussion.Yesterday's question: How to get the ID of a picture when uploading it to the bmob endToday's mission: integrating a
listvariable_manager.set_inventory (Inventory)#Create play with TasksPlay_source =dict (Name="Ansible Play", the hosts='Web',#the hosts variable that corresponds to the Playbook entry Yaml file, or it can be an IPGather_facts ='No', Tasks=[Dict (Action=dict (module='Shell', args='ifconfig'), register='Shell_out'), #dict (action=dict (module= ' Debug ', Args=dict (msg= ' {{shell_out.stdout}} ' )))]) Play= Play (). Load (Play_source, Variabl
Today, we found a bash vulnerability, but I have nearly 1000 servers. To facilitate and save time, I feel that I am using ansible to install the bash update package. Next I will share my installation method.
1. Installed playbook content
19:00:03#cd/etc/ansible[emailprotected]:/etc/ansible19:00:06#catupdate_bash.yml----hosts:"{{host}}"remote_user:"{{user}}"gather_facts:Truetasks:-name:updatebashinredhat6versionyum:name=http://mirrors.hustunique.com/ce
Yesterday I wrote an article about Android app conversion. I used BlackBerry's online Conversion Tool to convert Android apps into BlackBerry PlayBook apps. Some netizens reported that the method was a bit difficult, so today we need to add a new conversion method: Use the command line tool to convert the Android Application to the BlackBerry PlayBook application.
The first thing to note is that the command
Chen Ruting: Playing music1: Do play music this function is not considered thoughtful, using PS p out of the figure is not used, time-consuming labor. Have a look at the your wit, you have to consider thoughtful. It took so long, the first effect of music finally came out.2: Yesterday's problem, in a step by step after a careful examination found in fact is androidmanifest.xml inside the activity registered problems, preferably by the system import rather than manual input, which can reduce the
For some reason, I and your Ting have been retired team. So we started the system again last week.Chen Ruting is solely responsible for:1. User input number of questions;2. Limit the number of questions;3. Automatically generate the topic that the user needs the number of questions;4. TimingPractice Grainne Alone:1. Exception handling;2. Judge right and wrong;3. Interface and Monitoring4. TotalTwo people are responsible for: Find the app to learn the video, and the program into the app.The follo
November 24-December 8, this period of time the school's voltage is not very stable, occasionally will power off, in order to the integrity of the sprint, we have decided to make a coherent diary of what this time to do. Then the unification is sent out together throughout the time period.After a period of effort, our arithmetic function began to improve gradually. From the previous static picture gradually become dynamic.First day:Chen Ruting: PS rep
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.