File repmgr.sudoers of Package repmgr
Defaults:postgres !requiretty postgres ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop postgresql,/usr/bin/systemctl status postgresql,/usr/bin/systemctl start postgresql,/usr/bin/systemctl restart postgresql,/usr/bin/systemctl reload postgresql