Doku aktualisiert
This commit is contained in:
parent
f2870ade36
commit
501a064674
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
@ -20,14 +20,14 @@ collections:
|
||||||
description: "{{ description|default('GitLab-Runner') }}"
|
description: "{{ description|default('GitLab-Runner') }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
description: <-- Original-Variable
|
description: <-- Original-Variable
|
||||||
"{{ item.description| <-- Original-Inhalt
|
"{{ item.description| <-- Original-Inhalt
|
||||||
default('GitLab-Runner') }}" <-- wenn Inhalt leer, dann default...
|
default('GitLab-Runner') }}" <-- wenn Inhalt leer, dann default...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## playbook-grapher
|
## [playbook-grapher](https://github.com/haidaraM/ansible-playbook-grapher)
|
||||||
`ansible-playbook-grapher --include-role-tasks tests/fixtures/with_roles.yml`
|
`ansible-playbook-grapher --include-role-tasks tests/fixtures/with_roles.yml`
|
||||||
|
|
||||||
## example-cli
|
## example-cli
|
||||||
|
@ -57,7 +57,7 @@ Diese Datei enthält das Passwort mit dem die KeePassDb verschlüsselt ist.
|
||||||
Das vault-secret für die GroupVars wird mit `ansible-vault encrypt_string <password>` erstellt.
|
Das vault-secret für die GroupVars wird mit `ansible-vault encrypt_string <password>` erstellt.
|
||||||
|
|
||||||
### Erklärung
|
### Erklärung
|
||||||
```
|
```yaml
|
||||||
keepass_dbx: "./keepass_db.kdbx"
|
keepass_dbx: "./keepass_db.kdbx"
|
||||||
keepass_psw: !vault |
|
keepass_psw: !vault |
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
@ -71,7 +71,7 @@ Das vault-secret für die GroupVars wird mit `ansible-vault encrypt_string <pass
|
||||||
`restic_repository_password: "{{ lookup('keepass', 'restic_repository_password', 'password') }}"`
|
`restic_repository_password: "{{ lookup('keepass', 'restic_repository_password', 'password') }}"`
|
||||||
|
|
||||||
#### Erklärung
|
#### Erklärung
|
||||||
```
|
```yaml
|
||||||
restic_repository_password: <-- Ansible Variablen Name
|
restic_repository_password: <-- Ansible Variablen Name
|
||||||
lookup('keepass' <-- Aufruf Keepass-Lookup-Plugin
|
lookup('keepass' <-- Aufruf Keepass-Lookup-Plugin
|
||||||
restic_repository_password <-- Titel Eintrag mit Secret
|
restic_repository_password <-- Titel Eintrag mit Secret
|
||||||
|
@ -96,7 +96,7 @@ password <-- Feldbzeichner in KeepassDB
|
||||||
```
|
```
|
||||||
ist das gleiche wie:
|
ist das gleiche wie:
|
||||||
|
|
||||||
```bash
|
```yaml
|
||||||
zfs_pool:
|
zfs_pool:
|
||||||
- { name: "ssd_vm_mirror", type: "ssd", cron_minute_zfs_trim: "5", cron_hour_zfs_trim: "22", cron_month_zfs_trim: "4,8,12", cron_day_zfs_trim: "2", cron_weekday_zfs_scrub: "6", cron_minutes_zfs_scrub: "0", cron_hour_zfs_scrub: "23"}
|
- { name: "ssd_vm_mirror", type: "ssd", cron_minute_zfs_trim: "5", cron_hour_zfs_trim: "22", cron_month_zfs_trim: "4,8,12", cron_day_zfs_trim: "2", cron_weekday_zfs_scrub: "6", cron_minutes_zfs_scrub: "0", cron_hour_zfs_scrub: "23"}
|
||||||
```
|
```
|
||||||
|
@ -107,7 +107,7 @@ ist das gleiche wie:
|
||||||
|
|
||||||
## Loop + Join
|
## Loop + Join
|
||||||
### Vars
|
### Vars
|
||||||
```
|
```yaml
|
||||||
mountpoint: "/shares"
|
mountpoint: "/shares"
|
||||||
sources:
|
sources:
|
||||||
- "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1"
|
- "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1"
|
||||||
|
@ -117,7 +117,7 @@ ist das gleiche wie:
|
||||||
|
|
||||||
### Tasks
|
### Tasks
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
- name: "Join/Combine sources"
|
- name: "Join/Combine sources"
|
||||||
set_fact:
|
set_fact:
|
||||||
src: "{{sources | join (':')}}"
|
src: "{{sources | join (':')}}"
|
||||||
|
@ -137,7 +137,7 @@ ist das gleiche wie:
|
||||||
|
|
||||||
## prüfen ob eine Datei existiert
|
## prüfen ob eine Datei existiert
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
- name: check if migration file exists
|
- name: check if migration file exists
|
||||||
stat:
|
stat:
|
||||||
path: /etc/miniflux.d/.migration_successful
|
path: /etc/miniflux.d/.migration_successful
|
||||||
|
|
Loading…
Reference in a new issue