Merge pull request #282 from Random-Liu/fix-ansible-playbook
Improve ansible playbook.
This commit is contained in:
		| @@ -16,6 +16,11 @@ | |||||||
|     - name: "Start CRI-Containerd" |     - name: "Start CRI-Containerd" | ||||||
|       systemd: name=cri-containerd daemon_reload=yes state=started enabled=yes |       systemd: name=cri-containerd daemon_reload=yes state=started enabled=yes | ||||||
|  |  | ||||||
|  |     - name: "Load br_netfilter kernel module" | ||||||
|  |       modprobe: | ||||||
|  |         name: br_netfilter | ||||||
|  |         state: present | ||||||
|  |  | ||||||
|     - name: "Set bridge-nf-call-iptables"  |     - name: "Set bridge-nf-call-iptables"  | ||||||
|       sysctl: |       sysctl: | ||||||
|         name: net.bridge.bridge-nf-call-iptables |         name: net.bridge.bridge-nf-call-iptables | ||||||
| @@ -27,14 +32,13 @@ | |||||||
|         value: 1 |         value: 1 | ||||||
|  |  | ||||||
|     - name: "Check kubelet args in kubelet config" |     - name: "Check kubelet args in kubelet config" | ||||||
|       shell: grep "^Environment=\"KUBELET_EXTRA_ARGS=" /etc/systemd/system/kubelet.service.d/10-kubeadm.conf  |       shell: grep "^Environment=\"KUBELET_EXTRA_ARGS=" /etc/systemd/system/kubelet.service.d/10-kubeadm.conf || true | ||||||
|       ignore_errors: true |  | ||||||
|       register: check_args |       register: check_args | ||||||
|  |  | ||||||
|     - name: "Add runtime args in kubelet conf" |     - name: "Add runtime args in kubelet conf" | ||||||
|       lineinfile: |       lineinfile: | ||||||
|         dest: "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf" |         dest: "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf" | ||||||
|         line: "Environment=\"KUBELET_EXTRA_ARGS= --container-runtime=remote --runtime-request-timeout=15m --image-service-endpoint=/var/run/cri-containerd.sock --container-runtime-endpoint=/var/run/cri-containerd.sock\"" |         line: "Environment=\"KUBELET_EXTRA_ARGS= --container-runtime=remote --runtime-request-timeout=15m --container-runtime-endpoint=/var/run/cri-containerd.sock\"" | ||||||
|         insertafter: '\[Service\]' |         insertafter: '\[Service\]' | ||||||
|       when: check_args.stdout == "" |       when: check_args.stdout == "" | ||||||
|      |      | ||||||
|   | |||||||
| @@ -6,8 +6,8 @@ | |||||||
|   with_items: |   with_items: | ||||||
|     - unzip |     - unzip | ||||||
|     - tar |     - tar | ||||||
|     - btrfs-progs-devel |     - btrfs-progs | ||||||
|     - libseccomp-devel |     - libseccomp | ||||||
|     - util-linux  |     - util-linux  | ||||||
|     - socat |     - socat | ||||||
|     - libselinux-python |     - libselinux-python | ||||||
|   | |||||||
| @@ -8,8 +8,7 @@ | |||||||
|       - tar |       - tar | ||||||
|       - apt-transport-https |       - apt-transport-https | ||||||
|       - btrfs-tools |       - btrfs-tools | ||||||
|       - libapparmor-dev |       - libapparmor1 | ||||||
|       - libseccomp-dev # Revisit the need and alternatives for all -dev packages |  | ||||||
|       - libseccomp2 |       - libseccomp2 | ||||||
|       - socat |       - socat | ||||||
|       - util-linux |       - util-linux | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| --- | --- | ||||||
| # TODO update official versions once they are available | # TODO update official versions once they are available | ||||||
| cri_containerd_release_version: 0.1.0-247-g10df5f7 | cri_containerd_release_version: 0.1.0-258-g529971a | ||||||
| cri_release_directory: /opt/cri-containerd/ | cri_release_directory: /opt/cri-containerd/ | ||||||
| local_bin_dir: /usr/local/bin/ | local_bin_dir: /usr/local/bin/ | ||||||
| local_sbin_dir: /usr/local/sbin/ | local_sbin_dir: /usr/local/sbin/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Abhinandan Prativadi
					Abhinandan Prativadi