]> git.aero2k.de Git - urlbot-v3.git/commitdiff
CI deploy: install ansible.posix collection for authorized_key
authorThorsten <mail@aero2k.de>
Fri, 11 Sep 2026 13:07:03 +0000 (15:07 +0200)
committerThorsten <mail@aero2k.de>
Fri, 11 Sep 2026 13:07:03 +0000 (15:07 +0200)
.ci.toml
deploy/deploy.sh
deploy/roles/urlbot/templates/wait-for-rabbitmq.sh
logging.ini

index 55b915072d4db286d4741272b1b458cba9aa3979..99bbab99e02871eedced4c1063ca8c7aa371f843 100644 (file)
--- a/.ci.toml
+++ b/.ci.toml
@@ -15,11 +15,13 @@ name = "deploy"
 image = "docker.io/library/debian:trixie-slim"
 only_branches = ["refs/heads/master"]
 secrets = ["vault_password", "deploy_ssh_key", "deploy_ssh_key.pub"]
-env = { ANSIBLE_FORCE_COLOR = "0", ANSIBLE_NOCOWS = "1" }
+env = { ANSIBLE_FORCE_COLOR = "0", ANSIBLE_NOCOWS = "1", DEBIAN_FRONTEND = "noninteractive" }
 command = """
 set -e
 apt-get -qq update
 apt-get -qq install -y --no-install-recommends ansible-core openssh-client git >/dev/null
+# authorized_key is the only module the playbook uses outside ansible-core
+ansible-galaxy collection install ansible.posix >/dev/null
 cd deploy
 export ANSIBLE_SSH_COMMON_ARGS="-o UserKnownHostsFile=$PWD/known_hosts -o IdentitiesOnly=yes"
 ansible-playbook -i hosts deploy.yml -D \\
index 49b959d7364e33d1af44662d35a37ac1aff3cc02..335b6dd5b4d876f43c61334f77cf815da121465d 100755 (executable)
@@ -3,7 +3,7 @@
 [ "$(pwd | rev | cut -d/ -f1 | rev)" == "deploy" ] || pushd deploy || exit
 
 # shellcheck disable=SC1090
-source "${HOME}/.virtualenvs/ansible/bin/activate"
+# source "${HOME}/.virtualenvs/ansible/bin/activate"
 
 export ANSIBLE_VAULT_PASSWORD_FILE=vault.sh
 
index 59d65ba7eb8f09c61ef12f2d618f9b4dc12de577..5c3e59e50777cab285102d3641a442a0c8b29bed 100644 (file)
@@ -1,7 +1,6 @@
 #!/bin/bash
 
-# TODO: parse amqp_uri, insert here
-while ! echo > /dev/tcp/localhost/5672; do
+while ! echo > /dev/tcp/{{ amqp_uri | urlsplit('hostname') }}/{{ amqp_uri | urlsplit('port') or 5672 }}; do
         echo "waiting for remote service..."
         sleep 5s
 done
index e5d1a0e76770d3fabe8366d251130d3ae40d864b..fae5151ac1ba0c7b47016bd2d103da1743c55496 100644 (file)
@@ -8,11 +8,11 @@ keys=stream_handler
 keys=formatter
 
 [logger_root]
-level=INFO
+level=DEBUG
 handlers=stream_handler
 
 [logger_distbot]
-level=INFO
+level=DEBUG
 handlers=stream_handler
 qualname=distbot
 
@@ -23,7 +23,7 @@ qualname=pika
 
 [handler_stream_handler]
 class=StreamHandler
-level=INFO
+level=DEBUG
 formatter=formatter
 args=(sys.stderr,)