mirror of
https://github.com/nicolabs/ansible-role-grub.git
synced 2026-05-21 11:58:46 +02:00
More readable.
This commit is contained in:
parent
a95d592458
commit
8602ff13bb
|
|
@ -1,21 +1,22 @@
|
||||||
---
|
---
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.4.0
|
rev: v4.0.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
|
||||||
- repo: https://github.com/adrienverge/yamllint
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
rev: v1.26.0
|
rev: v1.26.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: yamllint
|
- id: yamllint
|
||||||
args: [-c=.yamllint]
|
args: [-c=.yamllint]
|
||||||
|
|
||||||
- repo: https://github.com/robertdebock/pre-commit
|
- repo: https://github.com/robertdebock/pre-commit
|
||||||
rev: v1.2.2
|
rev: v1.2.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible_role_find_unused_variable
|
- id: ansible_role_find_unused_variable
|
||||||
- id: ansible_role_find_empty_files
|
- id: ansible_role_find_empty_files
|
||||||
- id: ansible_role_find_empty_directories
|
- id: ansible_role_find_empty_directories
|
||||||
|
- id: ansible_role_fix_readability
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ Configure grub on your system.
|
||||||
|
|
||||||
## [Example Playbook](#example-playbook)
|
## [Example Playbook](#example-playbook)
|
||||||
|
|
||||||
This example is taken from `molecule/resources/converge.yml` and is tested on each push, pull request and release.
|
This example is taken from `molecule/default/converge.yml` and is tested on each push, pull request and release.
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: Converge
|
- name: Converge
|
||||||
|
|
@ -25,7 +25,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
|
||||||
value: 0
|
value: 0
|
||||||
```
|
```
|
||||||
|
|
||||||
The machine needs to be prepared in CI this is done using `molecule/resources/prepare.yml`:
|
The machine needs to be prepared in CI this is done using `molecule/default/prepare.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: prepare
|
- name: prepare
|
||||||
|
|
@ -114,7 +114,6 @@ If you find issues, please register them in [GitHub](https://github.com/robertde
|
||||||
|
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
|
|
||||||
|
|
||||||
## [Author Information](#author-information)
|
## [Author Information](#author-information)
|
||||||
|
|
||||||
[Robert de Bock](https://robertdebock.nl/)
|
[Robert de Bock](https://robertdebock.nl/)
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ _grub_packages:
|
||||||
Debian:
|
Debian:
|
||||||
- grub2
|
- grub2
|
||||||
|
|
||||||
grub_packages: "{{ _grub_packages[ansible_os_family] | default(_grub_packages['default']) }}"
|
grub_packages: "{{ _grub_packages[ansible_os_family] | default(_grub_packages['default'] ) }}"
|
||||||
|
|
||||||
_grub_update_grub_command:
|
_grub_update_grub_command:
|
||||||
default: grub2-mkconfig -o /boot/grub2/grub.cfg
|
default: grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
Alpine: grub-mkconfig -o /boot/grub/grub.cfg
|
Alpine: grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
Debian: update-grub
|
Debian: update-grub
|
||||||
|
|
||||||
grub_update_grub_command: "{{ _grub_update_grub_command[ansible_os_family] | default(_grub_update_grub_command['default']) }}"
|
grub_update_grub_command: "{{ _grub_update_grub_command[ansible_os_family] | default(_grub_update_grub_command['default'] ) }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue