Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
631e8ba0
Verified
Commit
631e8ba0
authored
Jun 12, 2020
by
Frederik Schwan
Committed by
Sven-Hendrik Haase
Jun 17, 2020
Browse files
fix E306 'Shells that use pipes should set the pipefail option'
parent
73b81ef4
Changes
3
Hide whitespace changes
Inline
Side-by-side
playbooks/tasks/reencrypt-vault-key.yml
View file @
631e8ba0
...
...
@@ -3,4 +3,4 @@
hosts
:
127.0.0.1
tasks
:
-
name
:
reencrypt vault key
shell
:
gpg --decrypt --batch --quiet "{{playbook_dir}}/../../misc/vault-password.gpg" | gpg --batch --armor --encrypt --output - {% for userid in root_gpgkeys %}--recipient {{userid}} {% endfor %} | sponge "{{playbook_dir}}/../../misc/vault-password.gpg"
shell
:
set -o pipefail &&
gpg --decrypt --batch --quiet "{{playbook_dir}}/../../misc/vault-password.gpg" | gpg --batch --armor --encrypt --output - {% for userid in root_gpgkeys %}--recipient {{userid}} {% endfor %} | sponge "{{playbook_dir}}/../../misc/vault-password.gpg"
playbooks/tasks/sync-ssh-hostkeys.yml
View file @
631e8ba0
...
...
@@ -7,7 +7,7 @@
shell
:
"
for
type
in
sha256
md5;
do
for
file
in
/etc/ssh/ssh_host_*.pub;
do
ssh-keygen
-l
-f
$file
-E
$type;
done;
echo;
done"
register
:
ssh_hostkeys
-
name
:
fetch known_hosts
shell
:
"
ssh-keyscan
127.0.0.1
2>/dev/null
|
sed
's#^127.0.0.1#{{
inventory_hostname
}}#'"
shell
:
"
set
-o
pipefail
&&
ssh-keyscan
127.0.0.1
2>/dev/null
|
sed
's#^127.0.0.1#{{
inventory_hostname
}}#'"
register
:
known_hosts
-
name
:
store hostkeys
...
...
roles/zabbix-server/tasks/main.yml
View file @
631e8ba0
...
...
@@ -38,7 +38,7 @@
-
name
:
check if zabbix db contains tables
shell
:
psql -U {{ zabbix_db_user }} {{ zabbix_db_name }} -c '\d' | grep -P '\(\d+ rows\)'
shell
:
set -o pipefail &&
psql -U {{ zabbix_db_user }} {{ zabbix_db_name }} -c '\d' | grep -P '\(\d+ rows\)'
become_user
:
zabbix-server
become
:
yes
register
:
table_is_populated
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment