Files
homelab/03-infra01-server/install.yml
2025-03-26 10:52:39 -05:00

51 lines
1.2 KiB
YAML

---
- name: Install all software on infra01
hosts: infra01
gather_facts: true
become: true
collections:
- somaz94.ansible_k8s_iac_tool
tasks:
# - Update all packages
# - Install ansible-core
# - Copy .vault_pass.txt from laptop and set env variable
# - Clone git repo
# - Install ansible required packages
- name: Install ansible-core
ansible.builtin.package:
name: ansible-core
state: present
become: true
- name: Install dnf-plugins-core
ansible.builtin.package:
name: dnf-plugins-core
state: present
become: true
- name: Install hashicorp repo
ansible.builtin.package:
name: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
state: present
- name: Install terraform
ansible.builtin.package:
name: terraform
state: present
become: true
# - name: Clone Git repository
# ansible.builtin.git:
# repo: "https://github.com/rblundon/homelab.git"
# dest: ~
# version: deploy-hub-cluster #main
# become: true
roles:
- install_kustomize