29 lines
492 B
YAML
29 lines
492 B
YAML
- name: install dep packages
|
|
become: yes
|
|
apt:
|
|
pkg:
|
|
- nfs-common
|
|
update_cache: yes
|
|
|
|
- name:
|
|
file:
|
|
path: /tmp/nfs-server
|
|
state: directory
|
|
mode: '0755'
|
|
|
|
- name: template every yaml.j2 files
|
|
template:
|
|
src: "nfs-pv-pvc.yaml.j2"
|
|
dest: "/tmp/nfs-server/nfs-pv-pvc.yaml"
|
|
|
|
- name: kubectl apply
|
|
shell: |
|
|
kubectl apply -f nfs-pv-pvc.yaml
|
|
register: output
|
|
args:
|
|
chdir: /tmp/nfs-server
|
|
|
|
- name: Resultat de kubectl
|
|
debug:
|
|
var: output.stdout
|