Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
exclude_paths:
- .ansible
- .github
- molecule
- roles/cluster_api/files/providers
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
Expand All @@ -40,7 +40,7 @@ jobs:
run: ansible-galaxy collection install .

- name: Run "ansible-test"
run: ansible-test units
run: ansible-test units --python 3.10
working-directory: /home/runner/.ansible/collections/ansible_collections/vexxhost/kubernetes

- name: Publish Test Report
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exclude: '^(roles/cluster_api/files/providers|roles/(cilium|cert_manager)/files/chart)'
exclude: '^(roles/cluster_api/files/providers|roles/(cilium|cert_manager)/files/chart|.ansible)'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
7 changes: 6 additions & 1 deletion molecule/kubernetes/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

- name: Prepare
hosts: all
become: true
pre_tasks:
- name: Wait for systemd to complete initialization
ansible.builtin.command: systemctl is-system-running
Expand Down Expand Up @@ -53,6 +52,12 @@
- iproute
when: ansible_facts['os_family'] == "RedHat"

- name: fix rocky9 sudo issue
ansible.builtin.shell:
cmd: |
chmod 0400 /etc/shadow
when: ansible_facts['distribution'] == "Rocky"

- name: Uninstall RHEL packages
ansible.builtin.package:
name:
Expand Down
5 changes: 4 additions & 1 deletion roles/kube_vip/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@
dest: /etc/kubernetes/manifests/kube-vip.yaml
owner: root
group: root
mode: "0644"
mode: "0640"
changed_when: false

- name: Ensure kube-vip configuration file
ansible.builtin.file:
path: /etc/kubernetes/manifests/kube-vip.yaml
state: "{{ kube_vip_enabled | ternary('file', 'absent') }}"
owner: root
group: root
mode: "0640"

- name: Flush handlers
ansible.builtin.meta: flush_handlers