Skip to content

Commit

Permalink
Copy legacy_groups.yml into its sole user
Browse files Browse the repository at this point in the history
  • Loading branch information
VannTen committed Nov 23, 2023
1 parent db998fc commit 069f4e1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 49 deletions.
48 changes: 46 additions & 2 deletions playbooks/boilerplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,52 @@
- name: Check ansible version
import_playbook: ansible_version.yml

- name: Ensure compatibility with old groups
import_playbook: legacy_groups.yml
# These are inventory compatibility tasks to ensure we keep compatibility with old style group names

- name: Add kube-master nodes to kube_control_plane
hosts: kube-master
gather_facts: false
tags: always
tasks:
- name: Add nodes to kube_control_plane group
group_by:
key: 'kube_control_plane'

- name: Add kube-node nodes to kube_node
hosts: kube-node
gather_facts: false
tags: always
tasks:
- name: Add nodes to kube_node group
group_by:
key: 'kube_node'

- name: Add k8s-cluster nodes to k8s_cluster
hosts: k8s-cluster
gather_facts: false
tags: always
tasks:
- name: Add nodes to k8s_cluster group
group_by:
key: 'k8s_cluster'

- name: Add calico-rr nodes to calico_rr
hosts: calico-rr
gather_facts: false
tags: always
tasks:
- name: Add nodes to calico_rr group
group_by:
key: 'calico_rr'

- name: Add no-floating nodes to no_floating
hosts: no-floating
gather_facts: false
tags: always
tasks:
- name: Add nodes to no-floating group
group_by:
key: 'no_floating'

- name: Install bastion ssh config
hosts: bastion[0]
Expand Down
47 changes: 0 additions & 47 deletions playbooks/legacy_groups.yml

This file was deleted.

0 comments on commit 069f4e1

Please sign in to comment.