You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
On Ansible 2.1 , async could be specified on tasks using the service module. This was extremely useful to avoid playbooks from hanging if a service start did not return in a reasonable amount of time.
At Ansible 2.2, this fails with async mode is not supported with the service module
STEPS TO REPRODUCE
Create a dummy service that is guaranteed to take a certain amount of time to start.
For this reproduce, create file /etc/init/testservice.conf , as root, with the following contents:
pre-start script
#!/bin/bash
i=0
while [ "$i" -lt 10 ]
do
echo "Attempt $i"
sleep 2
i=$((i+1))
done
exit 0
end script
script
echo "Started"
end script
This service is guaranteed to take 20 seconds to start.
Can we fix it? my couple of playbook died because of this. it's not really fun to rewrite tons of playbook because Ansible lacking backward compatibility.
Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.
ISSUE TYPE
COMPONENT NAME
service module
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Ubuntu 14.04 (but probably many others)
SUMMARY
On Ansible 2.1 , async could be specified on tasks using the
service
module. This was extremely useful to avoid playbooks from hanging if a service start did not return in a reasonable amount of time.At Ansible 2.2, this fails with
async mode is not supported with the service module
STEPS TO REPRODUCE
Create a dummy service that is guaranteed to take a certain amount of time to start.
For this reproduce, create file
/etc/init/testservice.conf
, as root, with the following contents:This service is guaranteed to take 20 seconds to start.
Run the following playbook against localhost:
EXPECTED RESULTS
At Ansible 2.1.2 restart timed out :
async task did not complete within the requested time
ACTUAL RESULTS
At Ansible 2.2 :
async mode is not supported with the service module
The text was updated successfully, but these errors were encountered: