Ansible Yum update fail

Problem:
Trying to update packages on CentOS 7 server using Ansible Playbook which is running fine but it fails with message “msg”: “You need to be root to perform this command

i have a local user created on CentOS 7 client and it has sudo access.

Expected outcome:
Update server with yum

Foreman and Proxy versions:
Foreman Version 2.0.3

Foreman and Proxy plugin versions:
foreman_ansible version 5.0.1
foreman_remote_execution 3.2.2

Distribution and version:

Other relevant data:
Yum update Ansible playbook

---
- hosts: all
  become: yes
  become_method: su
  become_user: user
  tasks:
    - name: update OS
      yum:
        name: "*"
        exclude:
          - kernel-*
        state: latest
        update_cache: yes
        disable_gpg_check: yes
        skip_broken: yes
    - debug: var=out

Outputof Prodcution.logs

 Parameters: {"utf8"=>"✓", "authenticity_token"=>"2", "job_invocation"=>{"job_category"=>"Ansible Playbook", "remote_execution_feature_id"=>"", "providers"=>{"Ansible"=>{"job_template_id"=>"168", "job_templates"=>{"155"=>{"effective_user"=>"", "execution_timeout_interval"=>""}, "159"=>{"input_values"=>"[FILTERED]", "effective_user"=>"", "execution_timeout_interval"=>""}, "165"=>{"input_values"=>"[FILTERED]", "effective_user"=>"", "execution_timeout_interval"=>""}, "168"=>{"effective_user"=>"user", "execution_timeout_interval"=>""}, "158"=>{"input_values"=>"[FILTERED]", "effective_user"=>"", "execution_timeout_interval"=>""}}}}, "description"=>"", "description_override"=>"%{template_name}", "description_format"=>"%{template_name}", "password"=>"[FILTERED]", "key_passphrase"=>"", "sudo_password"=>"[FILTERED]", "concurrency_level"=>"", "time_span"=>""}, "targeting"=>{"bookmark_id"=>"", "search_query"=>"name ^ (host)", "randomized_ordering"=>"false", "targeting_type"=>"static_query"}, "fakepassword"=>"[FILTERED]", "triggering"=>{"mode"=>"immediate", "start_at_raw"=>"2021-11-12 12:53", "start_before_raw"=>"", "input_type"=>"daily", "cronline"=>"", "days"=>"", "days_of_week"=>{"1"=>"0", "2"=>"0", "3"=>"0", "4"=>"0", "5"=>"0", "6"=>"0", "7"=>"0"}, "time"=>{"time(1i)"=>"2021", "time(2i)"=>"11", "time(3i)"=>"12", "time(4i)"=>"12", "time(5i)"=>"53"}, "max_iteration"=>"", "end_time_limited"=>"false", "end_time"=>{"end_time(1i)"=>"2021", "end_time(2i)"=>"11", "end_time(3i)"=>"12", "end_time(4i)"=>"12", "end_time(5i)"=>"53"}}, "commit"=>"Submit"}

This means it uses su to switch to user, not sudo to switch to root.

become: yes, without any further options should do what you intend.