修改kni压缩包

This commit is contained in:
崔一鸣
2019-06-22 18:22:31 +08:00
parent ce3505f485
commit 88a9f7b71d
7 changed files with 895 additions and 0 deletions

16
roles/kni/tasks/main.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- name: Ensures /home/tsg exists
file: path=/home/tsg state=directory
tags: mkdir
- name: Extract kni.tar.gz
unarchive:
src: "{{ role_path }}/files/kni.tar.gz"
dest: /home/tsg
tags: extract
- name: Template the kni.conf
template:
src: "{{ role_path }}/templates/kni.conf.j2"
dest: /home/tsg/kni/conf/kni/kni.conf
tags: template