Introduction and use of common ansible modules
Install ansible
apt update
apt install -y software-properties-common
apt-add-repository --yes --update ppa:ansible/ansible
apt install -y ansible
Generate key unclassified connection
ssh-keygen -f ~/.ssh/id_rsa -P '' -q
#Copy the ssh key to the remote host. You don't need to enter the password when ssh
ssh-copy-id root@192.168.0.74
an ...
Posted by itpvision on Wed, 09 Feb 2022 08:33:18 +0100
ansible manages the inclusion and import files of large projects
Manage large playbook s
If the playbook is complex, we can divide it into smaller files (that is, decouple) for easy management. Multiple playbooks can be combined into one main playbook in a modular way, or the task list in the file can be inserted into the play. To facilitate simpler management.
Include or import files
Ansible can use ...
Posted by JoeyT2007 on Mon, 03 Jan 2022 07:11:30 +0100
ansible implementation handler, processing task failure, file management
##Run tasks conditionally ####-Syntax of conditional tasks ######The when statement is used to run a task conditionally. It takes the condition to be tested as the value. If the conditions are met. Then run the task. If the conditions are not met, skip the task.
######Example:
When when The value of is false Task execution will be skipped whe ...
Posted by fireant on Sun, 07 Nov 2021 22:09:39 +0100
An article about TiDB disaster recovery
1, Background
High availability is another major feature of TiDB. All three components of TiDB/TiKV/PD can tolerate partial instance failure without affecting the availability of the whole cluster. The following describes the availability of these three components, the consequences of a single instance failure, and how to recover.
TiDB T ...
Posted by billynastie on Thu, 21 May 2020 06:23:27 +0200
Build an internal Ansible automated management platform from scratch - Chapter 1 (Api)
Build an internal Ansible automated management platform from scratch - Chapter 1
1. Background;
With the rapid technological iteration of lower and middle-level enterprise technologies and the popularity of micro-service distributed architecture, it is difficult for traditional operation and maintenance systems to initialize systems, deploy e ...
Posted by s0me0ne on Sun, 05 Apr 2020 23:14:12 +0200
Ansible ad hoc and common modules
Ansible execution result information - color description; ansible ad hoc description; how to view help documents and common module details
Host planning
Add user account
Explain:
1. Login account used by operation and maintenance personnel;
2. All businesses are placed in the "home directory of yun users" under / app / to avoid m ...
Posted by peteraub on Thu, 19 Mar 2020 11:01:10 +0100
k8s-1.15 deploy kube-prometheus-0.3.0
Article directory
Deploy Kube Prometheus
Kube Prometheus project composition
Submission of resources
Modify grafana
Create directory on 32.94, create pv, pvc
Create svc of grafana MySQL
Create cm for grafana.ini
Modify the configuration in grafana deployment, add the operation of mounting configma ...
Posted by noisenet on Wed, 11 Mar 2020 11:41:02 +0100
Linux file system and LVM
1, Manage file system
1. Creating an EXT4 file system
The mkfs (Make Filesystem) command is used to create a file system (format). The basic syntax format of the mkfs command is as follows:
1) mkfs application example
Format the / dev/sdb1 partition as an EXT4 file system.
<! -- self planning zone -- >
[root@centos01 ~]# fdisk / ...
Posted by Namadoor on Mon, 17 Feb 2020 08:35:31 +0100
Basic knowledge of ansible automatic operation and maintenance and cloud service
ansible is relatively simple. playbook is used to implement more complex tasks, while Roles is used to implement more complex tasks.
ansible uses modular development, which is equivalent to a collection of command parameters.
https://baike.baidu.com/item/%E4%BA%91%E6%9C%8D%E5%8A%A1/7843499?fr=aladdin Se ...
Posted by hanhao on Thu, 30 Jan 2020 05:07:19 +0100
Anible Notes - Batch Initialization Server
The initial configuration goals to be achieved in this paper are as follows:
ansible configures ssh secret login;
ansible remote configuration host name;
ansible controls remote hosts to add DNS resolution records to each other;
ansible configures the yum mirror source on the remote host and installs some software;
ansible configures time sy ...
Posted by nigelbashford on Sat, 25 Jan 2020 07:29:46 +0100