Fix pre-commit hooks and move directories
roles/ and inventory/ are now in playbooks/ also fixed issues reported by ansible-lint
This commit is contained in:
		
							parent
							
								
									dc398ddb6e
								
							
						
					
					
						commit
						4104057771
					
				
					 123 changed files with 91 additions and 39 deletions
				
			
		|  | @ -1,17 +0,0 @@ | |||
| #!/usr/bin/sh | ||||
| 
 | ||||
| cd /opt/ || exit | ||||
| 
 | ||||
| hc_url="https://hc-ping.com/$MAIL_HC_UID" | ||||
| 
 | ||||
| alias curl_hc='curl -LA "$USER_AGENT" --retry 3' | ||||
| 
 | ||||
| envsubst < template.msmtprc > /tmp/msmtprc | ||||
| envsubst < mailcheck.template.mail > /tmp/mailcheck.mail | ||||
| 
 | ||||
| result=$(msmtp -C /tmp/msmtprc -a default "$MAIL_HC_UID@hc-ping.com" < /tmp/mailcheck.mail 2>&1) | ||||
| if [ "$?" != "0" ] | ||||
| then | ||||
| 	echo "$result" | ||||
| 	curl_hc --data-raw "$result" "$hc_url/fail" >/dev/null | ||||
| fi | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue