cancel
Showing results for 
Search instead for 
Did you mean: 
DeepakRamanath
Flight Engineer
Flight Engineer
  • 439 Views

Error in community.general.haproxy - Section 8.7

Jump to solution

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.ansible-error.png

1 Solution

Accepted Solutions
Wasim_Raja
Moderator
Moderator
  • 427 Views

@DeepakRamanath I tried the exercise and I am unable to see any issue.

Wasim_Raja_0-1729086195920.png

 

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.

View solution in original post

3 Replies
Wasim_Raja
Moderator
Moderator
  • 430 Views

@DeepakRamanath Thanks for reaching out, I am trying to replicate the issue and will keep you posted.

Wasim_Raja
Moderator
Moderator
  • 428 Views

@DeepakRamanath I tried the exercise and I am unable to see any issue.

Wasim_Raja_0-1729086195920.png

 

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
Flight Engineer
Flight Engineer
  • 380 Views

@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. 

Join the discussion
You must log in to join this conversation.