I needed to repeat package installation command until it passes (i.e. returns exit code 0; it was failing because of extreme conditions with memory allocation issues):
- name: "Install katello-agent" action: yum name=katello-agent state=latest register: installed until: "{{ installed.rc }} == 0" retries: 10 delay: 10Note that although action: might look like something used only in old Ansible versions, it seems to be current way to do this do-until loops.
No comments:
Post a Comment