Common modules and cases of CICDAnsible

Ansible common modules and cases Common modules File module: create a directory or file for the target host, and give permissions - name: create a file file: 'path=/root/aaa.txt state=touch mode=0755 owner=foo group=foo' copy module: file transfer from ansible to target - name: copy a file copy: 'remote_src=no src=roles/testbiox/foo.sh ...

Posted on Thu, 04 Jun 2020 09:22:46 -0700 by impulse()

Python 3 remote Linux server executes commands and uploads and downloads files

1, Introduction Paramiko is based on SSH to connect to the remote server and perform relevant operations (SSHClient and SFTPClinet, i.e. remote connection, upload and download service). The module can be used to command or operate files on the remote server. It is worth mentioning that the internal remote management of fabric and ansible is rea ...

Posted on Wed, 03 Jun 2020 07:20:10 -0700 by joe1986

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