replace deprecated ansible include cmd

Signed-off-by: Wei Wei <weiwei.inf@gmail.com>
This commit is contained in:
Wei Wei 2017-11-06 14:11:35 +08:00
parent 8a1a2f2713
commit 53a4f93967

View File

@ -3,12 +3,12 @@
become: true
tasks:
- include_vars: vars/vars.yaml # Contains tasks variables for installer
- include: tasks/bootstrap_ubuntu.yaml # Contains tasks bootstrap components for ubuntu systems
- include_tasks: tasks/bootstrap_ubuntu.yaml # Contains tasks bootstrap components for ubuntu systems
when: ansible_distribution == "Ubuntu"
- include: tasks/bootstrap_centos.yaml # Contains tasks bootstrap components for centos systems
- include_tasks: tasks/bootstrap_centos.yaml # Contains tasks bootstrap components for centos systems
when: ansible_distribution == "CentOS"
- include: tasks/k8s.yaml # Contains tasks kubernetes component installation
- include: tasks/binaries.yaml # Contains tasks for pulling containerd and cri-containerd components
- include_tasks: tasks/k8s.yaml # Contains tasks kubernetes component installation
- include_tasks: tasks/binaries.yaml # Contains tasks for pulling containerd and cri-containerd components
- name: "Create a directory for containerd config"
file: path=/etc/containerd state=directory
@ -33,7 +33,7 @@
- name: "Start Containerd"
systemd: name=containerd daemon_reload=yes state=started enabled=yes
- name: "Start CRI-Containerd"
systemd: name=cri-containerd daemon_reload=yes state=started enabled=yes