start service using ansible
Tuesday, May 10th, 2022ansible groupname -i hosts -u user -m service -a “name=httpd state=started” -b
-a stand for arguments, -m stand for module, -b stand for become a root
ansible groupname -i hosts -u user -m service -a “name=httpd state=started” -b
-a stand for arguments, -m stand for module, -b stand for become a root
ansible groupname -i hosts -u user -m yum -a “name=httpd state=latest” -b
note: -a stand for arguments, -b stand for become a root, because need to be a root in order to install service