In my script, the startup command of the server is started, and then it is checked whether the server has started. In fact the server started, but the ansible does not see this, the countdown of “FAILED - RETRYING” continues until the end.
What could be the problem?
Version: ansible 2.3.2.0
-
hosts: ccluster
gather_facts: no
tasks: -
name: start ccluster
shell: “{{ profile_path }}/startServer.sh {{ item }}”
ignore_errors: yes
register: c_instances
async: 100
poll: 0
with_items: “{{ c_server_names }}” -
hosts: ccluster
gather_facts: no
tasks: -
name: wait for servers of ccluster to start
async_status: jid={{ item.ansible_job_id }}
register: starting
until: starting.finished
retries: 100
with_items: “{{ c_instances.results }}”
FAILED - RETRYING: wait for servers of ccluster to start (10 retries left).
FAILED - RETRYING: wait for servers of ccluster to start (9 retries left).
FAILED - RETRYING: wait for servers of ccluster to start (8 retries left).
FAILED - RETRYING: wait for servers of ccluster to start (7 retries left).
…etc.