Last active
January 19, 2026 21:33
-
-
Save HauptJ/4fe732afde8f89cca046e8b527c725a3 to your computer and use it in GitHub Desktop.
Shebanged Ansible Playbook to install K8s Operator dev tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ansible-playbook | |
| --- | |
| - name: Install K8s Operator Reqs | |
| hosts: localhost | |
| become: true | |
| vars: | |
| pre_task_pkgs: | |
| - make | |
| - jq | |
| - yq | |
| - git | |
| - openssl | |
| #Fedora only - comment out on Ubuntu | |
| - golang | |
| - python3 | |
| - python3-pip | |
| post_task_pkgs: | |
| - helm | |
| docker_users: | |
| - josh # Update with your Linux username | |
| terraform_version: 1.14.0 | |
| pre_tasks: | |
| - name: Install pre task packages | |
| ansible.builtin.package: | |
| name: "{{ item }}" | |
| state: present | |
| loop: "{{ pre_task_pkgs }}" | |
| roles: | |
| # - gantsign.golang | |
| - geerlingguy.docker | |
| - githubixx.kubectl | |
| - diodonfrost.terraform | |
| post_tasks: | |
| - name: Install post task packages | |
| ansible.builtin.package: | |
| name: "{{ item }}" | |
| state: present | |
| loop: "{{ post_task_pkgs }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| roles: | |
| #- name: gantsign.golang | |
| # version: go-1.25.3 | |
| # scm: git | |
| # src: https://github.com/sarnikowski/ansible-role-golang.git | |
| - name: githubixx.kubectl | |
| version: 24.0.1+1.33.5 | |
| scm: git | |
| src: https://github.com/githubixx/ansible-role-kubectl.git | |
| - name: geerlingguy.docker | |
| version: 7.9.0 | |
| - name: diodonfrost.terraform | |
| version: master | |
| scm: git | |
| src: https://github.com/diodonfrost/ansible-role-terraform.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment