Compare commits

..

62 Commits

Author SHA1 Message Date
e1308f0399 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.12.2' (#25) from renovate/actions into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 17s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-12-22 20:03:28 +00:00
2c2ad0d36b chore(deps): update ansible/ansible-lint action to v25.12.2
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 5s
Ansible Linter / ansible-lint (pull_request) Successful in 15s
Lint Markdown files / markdown-lint (pull_request) Successful in 5s
Ansible Linter / ansible-lint (push) Successful in 51s
2025-12-22 20:00:55 +00:00
2522671482 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.12.1' (#24) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 52s
2025-12-10 14:04:16 +00:00
bd8531e554 chore(deps): update ansible/ansible-lint action to v25.12.1
All checks were successful
Ansible Linter / ansible-lint (pull_request) Successful in 15s
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Lint Markdown files / markdown-lint (push) Successful in 9s
2025-12-10 14:00:59 +00:00
f2f1d4c974 Merge pull request 'chore(deps): update actions/checkout action to v6' (#23) from renovate/actions-checkout-6.x into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-12-02 21:07:04 +00:00
892219689b chore(deps): update actions/checkout action to v6
All checks were successful
Ansible Linter / ansible-lint (pull_request) Successful in 16s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (push) Successful in 17s
2025-12-02 21:01:09 +00:00
582834553f Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.12.0' (#22) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 9s
Ansible Linter / ansible-lint (push) Successful in 17s
2025-12-02 17:03:10 +00:00
a9c0c01605 chore(deps): update ansible/ansible-lint action to v25.12.0
All checks were successful
Ansible Linter / ansible-lint (pull_request) Successful in 15s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (push) Successful in 16s
2025-12-02 17:00:53 +00:00
00505c2a89 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.11.1' (#21) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 52s
2025-11-24 23:04:04 +00:00
f4e119524b chore(deps): update ansible/ansible-lint action to v25.11.1
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (push) Successful in 5s
Ansible Linter / ansible-lint (pull_request) Successful in 52s
2025-11-24 23:01:14 +00:00
fa2b610541 fix: rename files to .yaml
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 54s
2025-11-23 16:16:24 +01:00
99e2f784bb Merge pull request 'chore(deps): update davidanson/markdownlint-cli2-action action to v21' (#19) from renovate/davidanson-markdownlint-cli2-action-21.x into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 52s
Lint Markdown files / markdown-lint (push) Successful in 9s
2025-11-18 17:01:14 +00:00
347a08deef chore(deps): update davidanson/markdownlint-cli2-action action to v21
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 52s
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (pull_request) Successful in 52s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
2025-11-17 20:00:53 +00:00
b9309aa1d0 Merge pull request 'chore(deps): update actions/checkout action to v5.0.1' (#20) from renovate/actions into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 17s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-11-17 17:12:05 +00:00
49458f438b chore(deps): update actions/checkout action to v5.0.1
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 51s
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (pull_request) Successful in 51s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
2025-11-17 17:01:15 +00:00
56e2dd2d9a Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.11.0' (#18) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 53s
2025-11-10 14:05:37 +00:00
a85f3326e8 chore(deps): update ansible/ansible-lint action to v25.11.0
All checks were successful
Ansible Linter / ansible-lint (pull_request) Successful in 51s
Ansible Linter / ansible-lint (push) Successful in 52s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
Lint Markdown files / markdown-lint (push) Successful in 9s
2025-11-10 14:01:19 +00:00
02350c31b3 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.9.2' (#17) from renovate/actions into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 15s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-10-08 13:04:15 +00:00
f4b630e630 chore(deps): update ansible/ansible-lint action to v25.9.2
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (push) Successful in 4s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Ansible Linter / ansible-lint (pull_request) Successful in 52s
2025-10-08 13:01:28 +00:00
46e6d50cae Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.9.1' (#16) from renovate/actions into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (push) Successful in 5s
2025-10-01 13:04:33 +00:00
a4a9adfe9c chore(deps): update ansible/ansible-lint action to v25.9.1
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (push) Successful in 15s
Lint Markdown files / markdown-lint (pull_request) Successful in 3s
Ansible Linter / ansible-lint (pull_request) Successful in 51s
2025-10-01 13:01:46 +00:00
9f5c735a4d Merge pull request 'chore(deps): update actions/checkout action to v5' (#15) from renovate/actions-checkout-5.x into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 18s
Lint Markdown files / markdown-lint (push) Successful in 8s
2025-09-19 22:03:21 +00:00
5d70a460e8 chore(deps): update actions/checkout action to v5
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (push) Successful in 4s
Lint Markdown files / markdown-lint (pull_request) Successful in 8s
Ansible Linter / ansible-lint (pull_request) Successful in 16s
2025-09-19 22:02:20 +00:00
a2bccb8fdc Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.9.0' (#14) from renovate/actions into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 16s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-09-19 19:58:17 +00:00
48a36ba7d0 chore(deps): update ansible/ansible-lint action to v25.9.0
All checks were successful
Ansible Linter / ansible-lint (pull_request) Successful in 15s
Ansible Linter / ansible-lint (push) Successful in 57s
Lint Markdown files / markdown-lint (push) Successful in 8s
Lint Markdown files / markdown-lint (pull_request) Successful in 9s
2025-09-18 22:02:13 +00:00
e902d637bc chore(deps): update actions/checkout to v5.0.0
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 9s
Ansible Linter / ansible-lint (push) Successful in 15s
2025-09-18 22:32:31 +02:00
a86260e4fc Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.8.2' (#13) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 14s
Ansible Linter / ansible-lint (push) Successful in 15s
2025-08-21 16:03:31 +00:00
811bc1d3aa chore(deps): update ansible/ansible-lint action to v25.8.2
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 14s
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (pull_request) Successful in 14s
Lint Markdown files / markdown-lint (pull_request) Successful in 11s
2025-08-21 16:01:34 +00:00
6456b81e54 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.8.1' (#12) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 52s
2025-08-14 01:03:17 +00:00
95195fa16a chore(deps): update ansible/ansible-lint action to v25.8.1
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 14s
Lint Markdown files / markdown-lint (push) Successful in 15s
Ansible Linter / ansible-lint (pull_request) Successful in 13s
Lint Markdown files / markdown-lint (pull_request) Successful in 21s
2025-08-14 01:01:25 +00:00
c4659c9379 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.8.0' (#11) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 3s
Ansible Linter / ansible-lint (push) Successful in 50s
2025-08-13 16:02:59 +00:00
87b8cf1199 chore(deps): update ansible/ansible-lint action to v25.8.0
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 14s
Ansible Linter / ansible-lint (pull_request) Successful in 13s
Lint Markdown files / markdown-lint (push) Successful in 23s
Lint Markdown files / markdown-lint (pull_request) Successful in 9s
2025-08-13 16:01:22 +00:00
dcca335eaf Merge pull request 'chore(deps): update actions/checkout action to v4.3.0' (#9) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 13s
Ansible Linter / ansible-lint (push) Successful in 15s
2025-08-11 13:14:22 +00:00
d60ec9b0e3 chore(deps): update actions/checkout action to v4.3.0
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 51s
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (pull_request) Successful in 51s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
2025-08-11 13:02:26 +00:00
12bf1c6d4b fix(ansible-galaxy): adapt indentation
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 10s
Ansible Linter / ansible-lint (push) Successful in 38s
2025-08-06 16:10:27 +02:00
205eee2717 fix(ansible-galaxy): add namespace
Some checks failed
Lint Markdown files / markdown-lint (push) Successful in 12s
Ansible Linter / ansible-lint (push) Failing after 40s
2025-08-06 15:22:36 +02:00
68a27c4cab fix(ansible-galaxy): adapt list of supported platforms
Some checks failed
Lint Markdown files / markdown-lint (push) Successful in 11s
Ansible Linter / ansible-lint (push) Failing after 31s
2025-08-06 11:44:54 +02:00
76a19512ec fix(ansible-galaxy): remove namespace
Some checks failed
Ansible Linter / ansible-lint (push) Failing after 45s
Lint Markdown files / markdown-lint (push) Successful in 11s
2025-08-06 11:39:26 +02:00
4c01b58222 Merge pull request 'chore(deps): update ansible/ansible-lint action to v25.7.0' (#8) from renovate/actions into master
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 15s
Ansible Linter / ansible-lint (push) Successful in 53s
2025-07-29 22:06:22 +00:00
4cf7a8253f chore(deps): update ansible/ansible-lint action to v25.7.0
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 41s
Lint Markdown files / markdown-lint (push) Successful in 11s
Lint Markdown files / markdown-lint (pull_request) Successful in 23s
Ansible Linter / ansible-lint (pull_request) Successful in 52s
2025-07-29 22:02:20 +00:00
63f0a63137 chore(deps): update ansible/ansible-lint action to v25.6.1
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 5s
Ansible Linter / ansible-lint (pull_request) Successful in 53s
Ansible Linter / ansible-lint (push) Successful in 14s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-06-19 10:01:09 +00:00
62ec9e34e7 chore(deps): update ansible/ansible-lint action to v25.6.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 11s
Ansible Linter / ansible-lint (pull_request) Successful in 48s
Lint Markdown files / markdown-lint (push) Successful in 12s
Ansible Linter / ansible-lint (push) Successful in 50s
2025-06-17 19:01:04 +00:00
d15890655e docs(README): remove drone badge
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (push) Successful in 38s
2025-06-01 12:27:33 +02:00
55c5d7606c chore(deps): update davidanson/markdownlint-cli2-action action to v20
All checks were successful
Ansible Linter / ansible-lint (pull_request) Successful in 13s
Lint Markdown files / markdown-lint (pull_request) Successful in 15s
Ansible Linter / ansible-lint (push) Successful in 14s
Lint Markdown files / markdown-lint (push) Successful in 14s
2025-05-26 10:01:28 +00:00
ecf3c88f4b chore(deps): update ansible/ansible-lint action to v25.5.0
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Ansible Linter / ansible-lint (pull_request) Successful in 13s
Lint Markdown files / markdown-lint (pull_request) Successful in 11s
Ansible Linter / ansible-lint (push) Successful in 1m21s
2025-05-26 07:01:26 +00:00
93770afc90 chore(ci): use DavidAnson/markdownlint-cli2-action
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 57s
Lint Markdown files / markdown-lint (push) Successful in 19s
2025-05-13 21:20:05 +02:00
c372562a37 chore(deps): update ansible/ansible-lint action to v25.4.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 8s
Ansible Linter / ansible-lint (pull_request) Successful in 51s
Ansible Linter / ansible-lint (push) Successful in 43s
Lint Markdown files / markdown-lint (push) Successful in 11s
2025-04-28 13:01:16 +00:00
a6809f3901 style: use quotation marks for the name of an action
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 1m13s
Lint Markdown files / markdown-lint (push) Successful in 15s
2025-04-18 11:55:49 +02:00
4feea5ec87 fix(ci): remove requirements condition
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 56s
Lint Markdown files / markdown-lint (push) Successful in 9s
2025-04-14 22:50:18 +02:00
1f6e362148 fix(ci): remove workflow_dispatch
Some checks failed
Ansible Linter / ansible-lint (push) Failing after 49s
Lint Markdown files / markdown-lint (push) Successful in 12s
2025-04-14 22:34:23 +02:00
43001f8fc1 feat(act-runner): init
Some checks failed
Ansible Linter / ansible-lint (push) Failing after 44s
Lint Markdown files / markdown-lint (push) Successful in 8s
2025-04-14 22:31:08 +02:00
3919997908 chore(renovate): use configuration preset
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2025-04-01 22:21:42 +02:00
c5569f5ebb fix: install spice
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-14 20:36:53 +01:00
f67a2cb9c7 doc: add note about btrfs subvolume
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-13 22:46:38 +01:00
c5ae9156ca fix: remove obsolete package
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-19 23:06:45 +02:00
e883b27609 fix(kvm): adapt arch linux packages
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-09 16:31:49 +02:00
f79c1b0d71 style(lint): quote mode
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-26 22:20:44 +01:00
82f1501cd9 style(kvm): name of tasks, use built in module
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-02-12 14:46:34 +01:00
738ceb71c0 fix: add linter
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-02-08 18:23:50 +01:00
889e7b70af fix: use better name for task
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-28 22:02:46 +01:00
d512b648a0 fix(ci): replace git repository with gitea instead of drone
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-27 19:48:27 +02:00
61a4b4f04b fix: meta information 2022-04-27 19:47:47 +02:00
16 changed files with 114 additions and 156 deletions

View File

@@ -1,3 +1,4 @@
---
skip_list: []
exclude_paths:
- .gitea/

View File

@@ -1,94 +0,0 @@
---
kind: pipeline
type: kubernetes
name: linter
platform:
os: linux
steps:
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.31.1
resources:
limits:
cpu: 50
memory: 50M
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: sync
platform:
os: linux
arch: amd64
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
memory: 25M
settings:
branch: master
remote: ssh://git@github.com/volker-raschek/kvm-role.git
force: true
ssh_key:
from_secret: ssh_key
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/kvm-role

View File

@@ -0,0 +1,20 @@
name: Ansible Linter
on:
pull_request:
types: [ "opened", "reopened", "synchronize" ]
push:
branches: [ '**' ]
tags-ignore: [ '**' ]
jobs:
ansible-lint:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6.0.1
- name: Run ansible-lint
uses: ansible/ansible-lint@v25.12.2
with:
args: "--config-file .ansible-lint"
setup_python: "true"

View File

@@ -0,0 +1,18 @@
name: Lint Markdown files
on:
pull_request:
types: [ "opened", "reopened", "synchronize" ]
push:
branches: [ '**' ]
tags-ignore: [ '**' ]
jobs:
markdown-lint:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6.0.1
- uses: DavidAnson/markdownlint-cli2-action@v21.0.0
with:
globs: '**/*.md'

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.ansible

View File

@@ -45,19 +45,17 @@ MD012:
# MD013/line-length - Line length
MD013:
# Number of characters
line_length: 80
line_length: 120
# Number of characters for headings
heading_line_length: 80
heading_line_length: 120
# Number of characters for code blocks
code_block_line_length: 80
code_block_line_length: 120
# Include code blocks
code_blocks: false
# Include tables
tables: false
# Include headings
headings: true
# Include headings
headers: true
# Strict length checking
strict: false
# Stern length checking
@@ -70,11 +68,6 @@ MD022:
# Blank lines below heading
lines_below: 1
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
MD024:
# Only check sibling headings
allow_different_nesting: true
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
MD025:
# Heading level

17
.yamllint.yaml Normal file
View File

@@ -0,0 +1,17 @@
#
# Documentation:
# https://yamllint.readthedocs.io/en/stable/
#
rules:
brackets:
forbid: false
min-spaces-inside: 0
max-spaces-inside: 2
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
indentation:
spaces: 2
indent-sequences: false
line-length:
max: 360

View File

@@ -1,7 +1,6 @@
# kvm
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/kvm-role/status.svg)](https://drone.cryptic.systems/volker.raschek/kvm-role)
[![Ansible Role](https://img.shields.io/ansible/role/d/58218)](https://galaxy.ansible.com/volker_raschek/kvm_role)
[![Ansible Role](https://img.shields.io/ansible/role/d/58218)](https://galaxy.ansible.com/volker_raschek/kvm)
With following role can be kvm installed and configured.

View File

@@ -2,6 +2,6 @@
# Users added to required Unix groups to interact with qemu/kvm.
kvm_users: []
# - name: markus
# - name: "markus"
kvm_virtual_machine_manager: false

View File

@@ -1 +0,0 @@
---

View File

@@ -1,22 +1,25 @@
dependencies: []
galaxy_info:
author: Markus Pesch
description: Role to install and configure kvm on different distributions
company: Cryptic Systems
description: Role to install and configure kvm on different distributions
galaxy_tags:
- kvm
- virtualization
license: MIT
min_ansible_version: 2.1
min_ansible_version: "2.9"
namespace: volker-raschek
platforms:
- name: Archlinux
- name: ArchLinux
versions:
- all
- name: EL
versions:
- all
- name: Fedora
versions:
- all
- name: Ubuntu
versions:
- 20.04
- name: RockyLinux
versions:
- 8.5
galaxy_tags:
- kvm
- virtualization
dependencies: []
- all
role_name: kvm

View File

@@ -1,17 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assignees": [ "volker.raschek" ],
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"labels": [ "renovate" ],
"packageRules": [
{
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
}
],
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch"
"extends": [
"local>volker.raschek/renovate-config:default#master",
"local>volker.raschek/renovate-config:container#master",
"local>volker.raschek/renovate-config:actions#master",
"local>volker.raschek/renovate-config:regexp#master"
]
}

View File

@@ -1,25 +1,26 @@
---
- name: Read cpuinfo from kernel
shell: cat /proc/cpuinfo
ansible.builtin.command:
cmd: cat /proc/cpuinfo
register: cpu_info
changed_when: false
- name: Verify if Intel VMX or AMD SVM is enabled
fail:
ansible.builtin.fail:
msg: "Intel VMX or AMD SVE not enabled"
when: "'vmx' not in cpu_info.stdout and 'svm' not in cpu_info.stdout"
- name: Load variables
include_vars: "{{ ansible_os_family }}.yml"
- name: Include OS-specific variables
ansible.builtin.include_vars: "{{ ansible_facts['os_family'] }}.yaml"
- name: Add virt-manager to list of kvm packages
set_fact:
ansible.builtin.set_fact:
kvm_package_names: "{{ kvm_package_names + kvm_vm_manager_package_names }}"
when: kvm_virtual_machine_manager
- name: Install kvm packages
package:
ansible.builtin.package:
name: "{{ item }}"
state: present
with_items:
@@ -29,27 +30,34 @@
when: cpu_info.stdout.find('sev') != -1
block:
- name: Load kernel module "kvm_amd" temporarily
modprobe:
community.general.modprobe:
name: "kvm_amd"
params: "sev=1"
state: present
- name: Load kernel module "kvm_amd" persistently
template:
ansible.builtin.template:
src: "etc/modules-load.d/10-amd-sve.conf.j2"
dest: "/etc/modules-load.d/10-amd-sve.conf"
owner: root
group: root
mode: 0644
mode: "0644"
- name: Append unix user to unix groups to interact with qemu/kvm
user:
ansible.builtin.user:
name: "{{ item.name }}"
append: yes
append: true
groups: "{{ kvm_unix_groups }}"
with_items: "{{ kvm_users }}"
- name: Start and enable {{ kvm_service_name }}
systemd:
ansible.builtin.systemd:
name: "{{ kvm_service_name }}"
state: started
enabled: yes
enabled: true
# FIXME:
# Create btrfs subvolume /var/lib/libvirt/images and execute `chattr +C` if subvolume was successfullt created. Check if
# directory exists. If not check if filesystem type of /var/lib/libvirt/images is btrfs via `stat -f --format=%T <path>`
# and if the inode is 256 or 2 with `stat --format="%i" <path>`.
# - name: ...

View File

@@ -1,20 +1,21 @@
---
kvm_package_names:
- dmidecode
- dnsmasq # for dns of virtual networks
- libvirt
- openbsd-netcat # required to remote access via virt-manager
- qemu
- qemu-arch-extra
- qemu-block-gluster
- qemu-block-iscsi
- qemu-block-rbd
- edk2-ovmf # efi
- edk2-ovmf # efi
kvm_service_name: libvirtd
kvm_vm_manager_package_names:
- spice
- virt-manager
- virt-viewer
- openbsd-netcat
kvm_unix_groups:
- libvirt