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

View file

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