From f3c24ef90ebf545cbf10113373736c23da22df39 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 15 Jun 2023 17:28:21 +0300 Subject: [PATCH] Antifeature: Ansible now requires UTF-8 locale but I don't --- playbooks/ansible/cleanup-tmp.sh | 2 +- playbooks/fetch-push/fetch | 2 +- playbooks/fetch-push/push | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/ansible/cleanup-tmp.sh b/playbooks/ansible/cleanup-tmp.sh index 1fdefca..a706a8f 100755 --- a/playbooks/ansible/cleanup-tmp.sh +++ b/playbooks/ansible/cleanup-tmp.sh @@ -1,6 +1,6 @@ #! /bin/sh -hosts="`\"$HOME\"/.virtualenvs/ansible/bin/ansible --list-hosts servers | tail -n +2`" +LC_CTYPE=en_US.UTF-8 hosts="`\"$HOME\"/.virtualenvs/ansible/bin/ansible --list-hosts servers | tail -n +2`" echo localhost rm -rf "$HOME"/.ansible/tmp/\* diff --git a/playbooks/fetch-push/fetch b/playbooks/fetch-push/fetch index c823cd9..d658b57 100755 --- a/playbooks/fetch-push/fetch +++ b/playbooks/fetch-push/fetch @@ -2,4 +2,4 @@ start_dir="`pwd`" && fetch_push_dir="`dirname \"$0\"`" && -exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/fetch.yaml -e start_dir="$start_dir" "$@" +LC_CTYPE=en_US.UTF-8 exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/fetch.yaml -e start_dir="$start_dir" "$@" diff --git a/playbooks/fetch-push/push b/playbooks/fetch-push/push index 1953bb8..5e2d40d 100755 --- a/playbooks/fetch-push/push +++ b/playbooks/fetch-push/push @@ -2,4 +2,4 @@ start_dir="`pwd`" && fetch_push_dir="`dirname \"$0\"`" && -exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/push.yaml -e start_dir="$start_dir" "$@" +LC_CTYPE=en_US.UTF-8 exec "$HOME"/.virtualenvs/ansible/bin/ansible-playbook -v "$fetch_push_dir"/push.yaml -e start_dir="$start_dir" "$@" -- 2.39.5