Skip to content

Commit

Permalink
Merge pull request #4 from crichez/fix/lint-20240801
Browse files Browse the repository at this point in the history
Lint pass: 2024-08-01
  • Loading branch information
crichez authored Aug 1, 2024
2 parents 18f696f + 4c56b0e commit 34b762e
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
offline: false
14 changes: 12 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@ on:
- main
- release/v*

workflow_dispatch:

jobs:
build:
lint:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
cache: pip

- name: Install python dependencies
run: pip install -r requirements.txt

- name: Run ansible-lint
uses: ansible/ansible-lint@main
run: ansible-lint
File renamed without changes.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ansible
ansible-lint
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
collections:
- community.general
- community.crypto
2 changes: 1 addition & 1 deletion roles/uki_config/meta/argument_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ argument_specs:
type: path
description: The path to the MOK x509 certificate.
default: /etc/kernel/MOK.cer

owner:
type: str
default: root
Expand Down
18 changes: 18 additions & 0 deletions roles/uki_config/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@
ansible.builtin.copy:
content: "{{ ukify_config_backup.content | b64decode }}"
dest: "{{ ukify_conf_path }}"
owner: root
group: root
mode: "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Delete new ukify configuration file
Expand All @@ -335,6 +341,12 @@
ansible.builtin.copy:
content: "{{ dracut_config_backup.content | b64decode }}"
dest: "{{ dracut_conf_path }}"
owner: root
group: root
mode: "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Delete new dracut configuration file
Expand All @@ -351,6 +363,12 @@
ansible.builtin.copy:
content: "{{ kernel_install_config_backup.content | b64decode }}"
dest: "{{ install_conf_path }}"
owner: root
group: root
mode: "0644"
seuser: system_u
serole: object_r
setype: etc_t
changed_when: false

- name: Remove new kernel-install configuration file
Expand Down

0 comments on commit 34b762e

Please sign in to comment.