Skip to content

Commit 0d0fbbb

Browse files
authored
Merge pull request #270 from Rendanic/prlinter
github Actions & Linter
2 parents 0683a71 + 653b8d3 commit 0d0fbbb

File tree

8 files changed

+22
-19
lines changed

8 files changed

+22
-19
lines changed

.ansible-lint

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
use_default_rules: true
44

5-
# skip_list:
6-
75
exclude_paths:
86
- .github
97
- dbhome-conversion
108
- docker
119
- plugins/modules
12-
- playbooks
10+
- playbooks/desupported
1311
- changelogs
12+
13+
extra_vars:
14+
hostgroup: all

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ name: Ansible Lint
44
on:
55
pull_request:
66
branches:
7-
- oc
87
- master
98
push:
109
branches:
@@ -24,6 +23,6 @@ jobs:
2423
uses: ansible-community/ansible-lint-action@v6.5.2
2524
with:
2625
targets: |
26+
inventory/*
27+
playbooks/*
2728
roles/*
28-
29-
args: ""

.github/workflows/changelog-lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Test antsibull-changelog lint
33
on:
44
pull_request:
55
branches:
6-
- oc
76
- master
8-
- collection
97
push:
108
branches:
119
- 'pr*'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
minor_changes:
3+
- "ansible-lint: linting and github actions for playbooks and inventory (#270)"
4+
- "github actions: antsibull-changelog removed obsolete branches (#270)"
5+
bugfixes:
6+
- "requirements.yml: removed ansible-oracle due to loop in ansible-lint (#270)"
7+
- "github actions: ansible-lint: removed args due to deprecation warning (#270)"

playbooks/os.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717

1818
post_tasks:
1919
- name: Restart autofs
20-
service: name=autofs enabled=yes state=restarted
20+
ansible.builtin.service: name=autofs enabled=yes state=restarted
2121
tags: autofs

playbooks/os_update_reboot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
- name: yum update yum packages 1st
1616
ansible.builtin.package:
1717
# noqa package-latest
18-
name: "yum*"
18+
name: yum*
1919
state: latest
2020
register: yumyumstate
2121

2222
- ansible.builtin.debug: msg="{{ yumyumstate.results }}"
23-
# noqa unnamed-task
23+
# noqa unnamed-task
2424

2525
- name: Kernel Update with later Reboot
2626
ansible.builtin.package:
2727
# noqa package-latest
28-
name: "kernel-uek"
28+
name: kernel-uek
2929
state: latest
3030
register: kernelstate
3131

3232
- ansible.builtin.debug: msg="{{ kernelstate.results }}"
33-
# noqa unnamed-task
33+
# noqa unnamed-task
3434

3535
- name: yum update
3636
ansible.builtin.package:
@@ -40,7 +40,7 @@
4040
register: updatestate
4141

4242
- ansible.builtin.debug: msg="{{ kernelstate.results }}"
43-
# noqa unnamed-task
43+
# noqa unnamed-task
4444

4545
- name: reboot due to Kernel Update
4646
# noqa no-handler

playbooks/os_vagrant.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
any_errors_fatal: true
88
tasks:
99
- name: set new hostname
10-
hostname:
10+
ansible.builtin.hostname:
1111
name: "{{ inventory_hostname }}"
1212

1313
- name: Remove /etc/hosts
14-
file:
14+
ansible.builtin.file:
1515
path: /etc/hosts
1616
state: absent
1717

1818
- name: Update /etc/hosts
19-
blockinfile:
19+
ansible.builtin.blockinfile:
2020
path: /etc/hosts
2121
mode: 0644
2222
create: true

requirements.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
collections:
33
- name: devsec.hardening
44
version: 8.2.0
5-
- name: opitzconsulting.ansible_oracle
6-
version: 3.0.0

0 commit comments

Comments
 (0)