Commit Graph
29 Commits
Author SHA1 Message Date
cyberops7andGitHub 8de0775282 Fix RKE2 MetalLB L2Advertisement to honor custom lb_pool_name (#135) (#168)
* Fix RKE2 MetalLB L2Advertisement to honor custom lb_pool_name (#135)

The apply-manifests role rendered the IPAddressPool from a template using
lb_pool_name, but applied the L2Advertisement from a hardcoded remote file
where the pool name was baked in as 'first-pool'. Setting lb_pool_name to
anything else left the L2Advertisement pointing at a non-existent pool, so
MetalLB assigned LoadBalancer IPs but never advertised them (services got an
external IP but were unreachable).

Template the L2Advertisement locally from lb_pool_name, mirroring the
IPAddressPool pattern, so both manifests always reference the same pool.

* Add explicit become: true to apply-manifests kubectl tasks

These tasks set become_user without a task-level become, tripping
ansible-lint's partial-become rule. become is already enabled globally via
ansible_become in group_vars/all.yaml, so the tasks already escalate to the
ansible user — but that is invisible to the linter (and to anyone reading the
task in isolation). Make it explicit with become: true alongside become_user.

Behavior-neutral: verified with ansible-playbook -vvv that the escalation
target is unchanged (sudo -u ansible; chown ansible on the temp files), so
kubectl still runs as the ansible user that owns ~/.kube/config.
2026-07-02 00:34:00 -06:00
James Turland a64aeefc43 docker-swarm 2025-02-05 12:37:22 +00:00
James Turland ec3a088ed7 update 2024-09-25 15:51:50 +01:00
JamesandGitHub 8aed1489df Merge pull request #90 from jdratlif/main
A few updates for the RKE2 ansible plays
2024-09-25 15:49:04 +01:00
Peter SykesandGitHub 333024606d Update main.yaml
Typo in name
2024-07-26 13:31:20 +01:00
James Turland 80d9a3c52b Talos 2024-07-26 12:00:20 +01:00
James Turland c61143e109 fix folder structure 2024-05-16 16:58:51 +01:00
John Ratliff 4a231dc838 combine roles
Use one play for both roles since the targets are the same
Fact gathering disabled because it's slow and not needed for anything in the roles
2024-05-09 10:48:51 +00:00
John Ratliff 26e36348f9 add role argument validation 2024-05-09 10:47:03 +00:00
John Ratliff eb346e7fb0 move defaults into role 2024-05-09 10:46:51 +00:00
John Ratliff a6e93c5f9e fix directory permissions 2024-05-09 10:34:36 +00:00
John Ratliff dffd6962a4 move rke2 vars to role
default values are in defaults
url in vars since that pattern should never change
2024-05-09 10:25:29 +00:00
John Ratliff f70bd28c56 add ansible config
specifies inventory automatically
disables host key checking
2024-05-09 10:16:30 +00:00
John Ratliff c67c9780b5 update rke2 inventory
add rke2 group for added targeting
2024-05-09 10:15:13 +00:00
James Turland 13bf31486f rke2 2024-05-08 12:30:25 +01:00
James Turland a7b12f0b32 docker 2024-05-02 13:37:53 +01:00
James Turland 83ca476110 ansible secrets and variables 2024-04-29 17:24:01 +01:00
James Turland 8623f316a6 ansible-copy 2024-04-26 16:23:25 +01:00
James Turland 5879820fa1 update 2024-04-11 17:01:28 +01:00
tehNooBandGitHub 118e9bb567 Create Update-Playbook.yaml 2024-04-09 23:42:35 +01:00
Martin SloupandGitHub e6251a6cc5 Replace deprecated get_md5 witch get_checksum
The get_md5 for stat is unsupported and get_md5=no doesn't work with ansible 9.3.0.
2024-03-17 10:08:30 +01:00
James Turland 86447d24f0 update 2024-03-16 00:23:51 +00:00
James Turland 57cdb3e71d update 2024-03-16 00:21:25 +00:00
Janne SaarinenandGitHub df2d340c4f Update readme.md
Fixed type on the Create SSH key command
2024-03-10 00:14:43 +02:00
James Turland 11a1300592 Merge branch 'main' of https://github.com/JamesTurland/JimsGarage 2024-03-08 22:29:08 +00:00
James Turland 002401a9e7 ansible episode 2 2024-03-08 22:29:05 +00:00
tehNooBandGitHub f5ac81461b Delete Ansible/k8s.yml 2024-03-07 09:25:13 +00:00
James Turland 9e6520b351 ansible 2024-03-07 09:24:33 +00:00
James Turland 68323a0c5a paperless-ngx 2024-02-19 13:28:03 +00:00