-
Notifications
You must be signed in to change notification settings - Fork 0
/
helm3.yml
39 lines (31 loc) · 979 Bytes
/
helm3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Instalación de SSH --
# yum –y install openssh-server openssh-clients
# systemctl start sshd
# systemctl enable sshd
# ----
# -- Instlación de Ansible --
# yum install epel-release
# yum install ansible
# yum -y update
# ----
# -- Generación de una clave SSH que punta al mismo ordenador --
# ssh-keygen
# Pulsa enter y introduce una frase.
# ssh-copy-id root@192.168.1.38
# vi /etc/ansible/hosts
# Añade la IP del ordenador al que quieres apuntar
# mkdir Ansible
# ----
# Instalación de Helm 3 en Centos 7
---
- name: Instaalcion e Helm 3
hosts: servidor
tasks:
- name: Creano carpeta para Helm
shell: mkdir -p /Helm
- name: Descargando Helm 3
shell: curl -fsSL -o /Helm/get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
- name: Otorgando permisos al instaldor
shell: chdir=/Helm chmod 700 get_helm.sh
- name: Ejecutando el script
shell: chdir=/Helm ./get_helm.sh