摘要:
- hosts: all tasks: - name: ping test ping: - name: from remote host copy file fetch: src: /etc/hosts dest: . owner: root mode: 0600 - hosts: 127.0.0. 阅读全文
摘要:
##### ping ```bash ansible all -m ping ``` ##### fetch ```bash # ansible-doc -s fetch 从远端拉取文件 ansible 127.0.0.1 -m fetch -a "src=/etc/hosts dest=/tmp 阅读全文
摘要:
默认管理清单文件 /etc/ansible/hosts 可以在配置清单中配置 主机变量 群组变量 # /etc/ansible/hosts [master] 55.3.139.9 var='master01' 55.3.139.1[0:1] [node] qhnosqlnode[1:15] [k8s 阅读全文
摘要:
主机环境CentOS Linux release 7.6.1810 (Core) yum install epel-release yum install ansible -y ansible 127.0.0.1 -m ping 127.0.0.1 | SUCCESS => { "ansible_f 阅读全文
摘要:
cat>>/etc/profile<<EOF export JAVA_HOME=/tools/jdk-11.0.2 export JAVA_JRE=$JAVA_HOME/jre export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:. export P 阅读全文
摘要:
cri container runtime interface --> docker containerd oci open container interfac 实现了cri 与操作系统的联动 cni container network interface csi container storag 阅读全文