diff --git a/ansible/roles/baremetal/tasks/post-install.yml b/ansible/roles/baremetal/tasks/post-install.yml index 498453a368..5c0f082e42 100644 --- a/ansible/roles/baremetal/tasks/post-install.yml +++ b/ansible/roles/baremetal/tasks/post-install.yml @@ -27,8 +27,8 @@ lineinfile: dest: /etc/sudoers.d/kolla-ansible-users state: present - regexp: '^{{ kolla_group }}' - line: '{{ kolla_group }} ALL=(ALL) NOPASSWD: ALL' + regexp: '^{{ kolla_user }}' + line: '{{ kolla_user }} ALL=(ALL) NOPASSWD: ALL' become: True when: create_kolla_user_sudoers | bool