helm v.0.0.1 playbook

This commit is contained in:
Ibrahim Mkusa 2024-11-14 14:21:48 -05:00
parent 8337a14161
commit 01e607bcbb
4 changed files with 25 additions and 3 deletions

View File

@ -3,3 +3,6 @@ inventory=./inventory
remote_user="ansible" remote_user="ansible"
roles_path=./roles roles_path=./roles
collections_path=./collections collections_path=./collections
[inventory]
enable_plugins = community.general.proxmox, yaml

View File

@ -11,8 +11,7 @@ localhost
aws ansible_user=ubuntu aws ansible_user=ubuntu
[helm] [helm]
192.168.1.233 ansible_user=ansible node1 ansible_user=ansible
192.168.1.237 ansible_user=ansible
[dhcp] [dhcp]
192.168.2.191 192.168.2.191

View File

@ -1,6 +1,6 @@
--- ---
- name: installs docker on machine using jeffs geerling role - name: installs docker on machine using jeffs geerling role
hosts: docker hosts: localhost
become: true become: true
roles: roles:
- geerlingguy.docker - geerlingguy.docker

View File

@ -0,0 +1,20 @@
---
- name: installs helm repo and its repository on ubuntu
hosts: helm
become: true
tasks:
- name: install needed dependencies via apt
ansible.builtin.apt:
pkg:
- curl
- apt-transport-https
- name: install repository and key (not idempotent)
ansible.builtin.shell: |
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
apt update
- name: install helm kubernetes package manager
ansible.builtin.apt:
name: helm