I need to update several systems

General support questions
Post Reply
michaleben123
Posts: 2
Joined: 2019/04/02 02:59:00

I need to update several systems

Post by michaleben123 » 2019/04/02 03:04:43

Hi everyone,

I need to update several systems with the command "chkconfig --level 2345 restorecon on".

When I can login directly as root "ssh root@192.168.1.1 < /root/script/update.script" worked fine.

How can I accomplish the same thing as a regular user where I'd need to use sudo and enter a password on the other end?

Thanks!

User avatar
jlehtone
Posts: 2142
Joined: 2007/12/11 08:17:33
Location: Finland

Re: I need to update several systems

Post by jlehtone » 2019/04/02 07:51:11

EPEL repository has package 'ansible'.
The ansible is for configuring and updating several systems.
It does use ssh by default and supports sudo ("become").

See: https://docs.ansible.com/ansible/latest ... arted.html

Post Reply