Rendering host file written by ansible role

The hosts file is usually used when deploying a distributed cluster. We usually write in the ip address and host name. How to implement rendering when writing Ansible?Define the roles first [root@ansible kubeadm-high-install]# ls ansible.cfg group_vars hosts roles site-all.yml The first file takes the default etc/ansible cfg file and remov ...

Posted on Wed, 27 May 2020 08:22:10 -0700 by elkidogz

Playbook understanding of the Ansible module in python

Playbook In the previous section, we detailed some of the commonly used modules provided by Ansible.You can see that each module in Ansible focuses on a certain aspect of functionality.Although the functions implemented by each module are relatively simple, the more complex functions can be achieved by combining the modules.In Ansible, the fil ...

Posted on Wed, 20 May 2020 15:28:58 -0700 by rheroux

Install and use the automation tool Ansible in CentOS 7

Ansible is a free and open source configuration and automation tool developed for Unix like systems. It's written in Python, similar to Chef and Puppet, but with one difference and advantage, we don't need to install any clients in the node. It uses SSH to communicate with nodes. Step 1: install Ansible using yum rpm ...

Posted on Tue, 05 May 2020 08:45:37 -0700 by cneale

Automated Operations and Maintenance Tool Ansible-playbook Details and Case Actual

1. playbook - Introduction to playbook playbooks is a different mode of execution from the Ansible command line, which is more flexible and powerful.Simply put, playbook is a very simple configuration management and multi-host deployment system that, unlike any existing pattern, serves as a foundation for deploying complex applications.Playboo ...

Posted on Sun, 12 Apr 2020 09:44:13 -0700 by susi

Kubernetes Cluster Installation Deployment

1. Server preparation Explain host name Server IP To configure ETCD Cluster kubernetes-etcd01 192.168.110.96 4c/3g kubernetes-etcd02 192.168.110.97 4c/3g kubernetes-etcd03 192.168.110.98 4c/3g Master Cluster kubernetes-master01 192.168.110.128 4c/3g kubernetes-master02 192.168.110.130 4c/3g kubernetes-master03 192.168.1 ...

Posted on Wed, 08 Apr 2020 20:46:42 -0700 by jrose83

kubernetes Cluster Installation Guide: kube-proxy Component Deployment

The kube-proxy component is to provide endpoint services for pod applications within a cluster. When we define an svc for a pod, the kube-proxy automatically generates a mapping relationship between the pod and the svc and proxies it to the cluster or hosts. 1 Installation preparation Specific note: All operations here are performed on ...

Posted on Sat, 04 Apr 2020 02:00:08 -0700 by jakeruston

Ansible-Installation Configuration

Host Planning Host Name Operating System Version Intranet IP External Network IP (Analog) Install software ansi-manager CentOS7.5 172.16.1.180 10.0.0.180 ansible ansi-haproxy01 CentOS7.5 172.16.1.181 10.0.0.181   ansi-haproxy02 CentOS7.5 172.16.1.182 10.0.0.182   ansi-web01 CentOS7.5 172.16.1.183 10.0.0.183   ansi-web02 CentOS7.5 1 ...

Posted on Sun, 08 Mar 2020 09:26:07 -0700 by meandrew

Basic shell Scripting usage

shell scriptTo be precise, Shell is a command-line interpreter that follows certain syntax to interpret and pass commands into the system.It provides an interface system-level program for users to send requests to Linux to run programs. Users can use shell to start, suspend, stop, or even write some programs.Shell itself is a program written i ...

Posted on Fri, 21 Feb 2020 09:20:41 -0800 by jwhite68

Principle of ansible, installation, various modules in detail

What is ansible? Ansible is a new automated operation and maintenance tool. It is developed based on Python and combines the advantages of many operation and maintenance tools (puppet, cfengine, chef, func, fabric). It realizes the functions of batch system configuration, batch program deployment, batch running commands and so on.Ansible is m ...

Posted on Sun, 09 Feb 2020 09:49:02 -0800 by like_php

Host list for ansible, yml syntax, playbook details + operations

Contents of this chapter:inventory host list2. yml grammar3. playbook Details + Operations inventory host list ansible The default host list is/etc/ansible/hosts file //Host lists can be set manually or generated dynamically through Dynamic Inventory //Use FQDN for generic hostname vi /etc/ansible/hosts [webserver] #Square bracket set ...

Posted on Sun, 09 Feb 2020 09:28:59 -0800 by cybercrypt13