From 65856979f8c5e764e0ee0535ab591513cfa3b356 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 23 Nov 2022 08:24:31 +1100 Subject: [PATCH] gitea-set-org-logos: use -T on mariadb command For some reason something about running under Ansible 6 trips this up and fails with "unable to allocate a TTY", whereas the old version didn't. Tell it not to allocate a tty. Change-Id: Iceb3686d6c00380f4ffba0be8a7af7abd10f8f8b --- playbooks/roles/gitea-set-org-logos/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gitea-set-org-logos/tasks/main.yaml b/playbooks/roles/gitea-set-org-logos/tasks/main.yaml index 222e956eef..54c405d17a 100644 --- a/playbooks/roles/gitea-set-org-logos/tasks/main.yaml +++ b/playbooks/roles/gitea-set-org-logos/tasks/main.yaml @@ -41,7 +41,7 @@ - name: Run update query shell: >- /usr/local/bin/docker-compose -f /etc/gitea-docker/docker-compose.yaml - exec mariadb bash -c 'mysql -uroot -p"$MYSQL_ROOT_PASSWORD" -e + exec -T mariadb bash -c 'mysql -uroot -p"$MYSQL_ROOT_PASSWORD" -e "USE gitea; UPDATE user SET avatar = '\''{{ item }}'\'', use_custom_avatar = 1 WHERE name = '\''{{ item }}'\''"' args: executable: '/bin/bash'