Commit 4e19d54d authored by Eric Pellegrini's avatar Eric Pellegrini

removed useless single include in configure-environment task

parent ac2d6a4e
--- ---
# tasks file for create-admin # tasks file for create-admin
- include: setup-container-network.yml - name: remove previous kubernetes configuration file
file:
path: "{{ kub_admin_home }}/.kube"
state: absent
- name: create ~/.kube file
file:
path: "{{ kub_admin_home }}/.kube"
state: directory
- name: copy default kubernetes configuration file to ~/.kube
copy:
src: /etc/kubernetes/admin.conf
dest: "{{ kub_admin_home }}/.kube/config"
remote_src: yes
become: yes
- name: change ownership of ~/.kube/config
file:
path: "{{ kub_admin_home }}/.kube/config"
owner: kub-admin
group: docker
become: yes
- name: install cni provider for pod network
command: kubectl apply -f https://raw.githubusercontent.com/coreos/{{cni_provider}}/a70459be0084506e4ec919aa1c114638878db11b/Documentation/kube-{{cni_provider}}.yml
- name: generate the kubernetes join command
command: kubeadm token create --print-join-command
register: kub_join_command
- name: copy join command to local file
local_action: copy content="{{ kub_join_command.stdout }}" dest="~/kub-join-command"
- name: remove previous kubernetes configuration file
file:
path: "{{ kub_admin_home }}/.kube"
state: absent
- name: create ~/.kube file
file:
path: "{{ kub_admin_home }}/.kube"
state: directory
- name: copy default kubernetes configuration file to ~/.kube
copy:
src: /etc/kubernetes/admin.conf
dest: "{{ kub_admin_home }}/.kube/config"
remote_src: yes
become: yes
- name: change ownership of ~/.kube/config
file:
path: "{{ kub_admin_home }}/.kube/config"
owner: kub-admin
group: docker
become: yes
- name: install cni provider for pod network
command: kubectl apply -f https://raw.githubusercontent.com/coreos/{{cni_provider}}/a70459be0084506e4ec919aa1c114638878db11b/Documentation/kube-{{cni_provider}}.yml
- name: generate the kubernetes join command
command: kubeadm token create --print-join-command
register: kub_join_command
- name: copy join command to local file
local_action: copy content="{{ kub_join_command.stdout }}" dest="~/kub-join-command"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment