whitespaces fixed

This commit is contained in:
Denis Knauf 2021-04-10 22:21:21 +02:00
parent 3beb52ad22
commit cfe7735991
2 changed files with 22 additions and 21 deletions

View file

@ -36,26 +36,26 @@ Example Playbook
state: directory state: directory
- name: devices.facts - name: devices.facts
copy: copy:
content: | content: |
#!/usr/bin/env sh #!/usr/bin/env sh
check() { check() {
v="$1" v="$1"
shift shift
if "$@" >/dev/null if "$@" >/dev/null
then then
echo -n "\"$v\": true, " echo -n "\"$v\": true, "
else else
echo -n "\"$v\": false, " echo -n "\"$v\": false, "
fi fi
} }
echo -n '{' echo -n '{'
check random dd count=1 of=/dev/null status=none if=/dev/random check random dd count=1 of=/dev/null status=none if=/dev/random
check urandom dd count=1 of=/dev/null status=none if=/dev/urandom check urandom dd count=1 of=/dev/null status=none if=/dev/urandom
check hwrng dd count=1 of=/dev/null status=none if=/dev/hwrng check hwrng dd count=1 of=/dev/null status=none if=/dev/hwrng
check hwclock hwclock --test 2>/dev/null check hwclock hwclock --test 2>/dev/null
echo '"checked": true}' echo '"checked": true}'
dest: /etc/ansible/facts.d/devices.fact dest: /etc/ansible/facts.d/devices.fact
mode: 0755 mode: 0755
owner: root owner: root

View file

@ -1,3 +1,4 @@
# vim: set et sw=2 ts=2 sts=2:
galaxy_info: galaxy_info:
author: Denis Knauf author: Denis Knauf
description: System-template with stable, usable and needable configs description: System-template with stable, usable and needable configs
@ -10,7 +11,7 @@ galaxy_info:
versions: [7] versions: [7]
- name: Debian - name: Debian
versions: [9,10,11] versions: [9,10,11]
- name: Ubuntu - name: Ubuntu
version: [18.04,20.04] version: [18.04,20.04]
galaxy_tags: [] galaxy_tags: []
dependencies: [] dependencies: []