helm v.0.0.1 playbook
This commit is contained in:
parent
8337a14161
commit
01e607bcbb
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
20
playbooks/helm/install_helm_apt.yaml
Normal file
20
playbooks/helm/install_helm_apt.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user