Merge pull request #396 from weiwei04/ansible

replace deprecated ansible include cmd
This commit is contained in:
Lantao Liu 2017-11-06 10:37:56 -08:00 committed by GitHub
commit b6a1697c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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