File tree Expand file tree Collapse file tree 6 files changed +16
-7
lines changed Expand file tree Collapse file tree 6 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
exclude_paths:
3
+ - .ansible
3
4
- .github
4
5
- molecule
5
6
- roles/cluster_api/files/providers
Original file line number Diff line number Diff line change 28
28
uses : actions/checkout@v3
29
29
30
30
- name : Setup Python
31
- uses : actions/setup-python@v2
31
+ uses : actions/setup-python@v5
32
32
with :
33
33
python-version : " 3.10"
34
34
cache : pip
40
40
run : ansible-galaxy collection install .
41
41
42
42
- name : Run "ansible-test"
43
- run : ansible-test units
43
+ run : ansible-test units --python 3.10
44
44
working-directory : /home/runner/.ansible/collections/ansible_collections/vexxhost/kubernetes
45
45
46
46
- name : Publish Test Report
Original file line number Diff line number Diff line change 44
44
uses : actions/checkout@v3
45
45
46
46
- name : Setup Python
47
- uses : actions/setup-python@v2
47
+ uses : actions/setup-python@v5
48
48
with :
49
49
python-version : " 3.10"
50
50
cache : pip
83
83
uses : actions/checkout@v3
84
84
85
85
- name : Setup Python
86
- uses : actions/setup-python@v2
86
+ uses : actions/setup-python@v5
87
87
with :
88
88
python-version : " 3.10"
89
89
cache : pip
Original file line number Diff line number Diff line change 1
- exclude : ' ^(roles/cluster_api/files/providers|roles/(cilium|cert_manager)/files/chart)'
1
+ exclude : ' ^(roles/cluster_api/files/providers|roles/(cilium|cert_manager)/files/chart|.ansible )'
2
2
3
3
repos :
4
4
- repo : https://github.com/pre-commit/pre-commit-hooks
Original file line number Diff line number Diff line change 14
14
15
15
- name : Prepare
16
16
hosts : all
17
- become : true
18
17
pre_tasks :
19
18
- name : Wait for systemd to complete initialization
20
19
ansible.builtin.command : systemctl is-system-running
53
52
- iproute
54
53
when : ansible_facts['os_family'] == "RedHat"
55
54
55
+ - name : fix rocky9 sudo issue
56
+ ansible.builtin.shell :
57
+ cmd : |
58
+ chmod 0400 /etc/shadow
59
+ when : ansible_facts['distribution'] == "Rocky"
60
+
56
61
- name : Uninstall RHEL packages
57
62
ansible.builtin.package :
58
63
name :
Original file line number Diff line number Diff line change 73
73
dest : /etc/kubernetes/manifests/kube-vip.yaml
74
74
owner : root
75
75
group : root
76
- mode : " 0644 "
76
+ mode : " 0640 "
77
77
changed_when : false
78
78
79
79
- name : Ensure kube-vip configuration file
80
80
ansible.builtin.file :
81
81
path : /etc/kubernetes/manifests/kube-vip.yaml
82
82
state : " {{ kube_vip_enabled | ternary('file', 'absent') }}"
83
+ owner : root
84
+ group : root
85
+ mode : " 0640"
83
86
84
87
- name : Flush handlers
85
88
ansible.builtin.meta : flush_handlers
You can’t perform that action at this time.
0 commit comments