Ansible common modules and cases
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()
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
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
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
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
Posted on Tue, 05 May 2020 08:45:37 -0700 by cneale
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
1. Server preparation
Posted on Wed, 08 Apr 2020 20:46:42 -0700 by jrose83
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
Operating System Version
External Network IP (Analog)
Posted on Sun, 08 Mar 2020 09:26:07 -0700 by meandrew
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