Hi All,
I'm getting a module error pointing to community.general.haproxy mode when I run the update_webapp.yml playbook in Section 8.7, Lab: Coordinating Rolling Updates. The specific tas is to disable the haproxy with backnd being the app. This is the pre_task.
pre_tasks:
- name: Remove web server from service during the update
community.general.haproxy:
state: disabled
backend: app
host: "{{ inventory_hostname }}"
delegate_to: "{{ groups['lb_servers'][0] }}"
Unfortunately, I cannot copy paste the error here and hence takena screenshot.
Anyone else experiencing this? I have tried with different versions of haproxy modules, but still get the same eroor.
@DeepakRamanath I tried the exercise and I am unable to see any issue.
You can try running "lab finish update-review" and try the exercise again from start if that does not work please delete and recreate the lab and try again and make sure the indentations are correct in the playbook.
@DeepakRamanath Thanks for reaching out, I am trying to replicate the issue and will keep you posted.
@DeepakRamanath I tried the exercise and I am unable to see any issue.
You can try running "lab finish update-review" and try the exercise again from start if that does not work please delete and recreate the lab and try again and make sure the indentations are correct in the playbook.
@Wasim_Raja Some how I had missed running step, 1.4 in the lab, which was
ansible-navigator run -m stdout site.yml
and hence I was getting the haproxy module error. Once I was able to run the site.yml successfully, the update_webapp.yml also went through successfully.
Thanks for your assistance.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.