httpd status code using curl
May 30th, 2022 by ayadcurl -o /dev/null -s -w "%{http_code}\n" http://localhost
curl -o /dev/null -s -w "%{http_code}\n" http://localhost
ip a |grep “inet 10” |awk ‘NR==1{print $2}’ |sed -r ‘s/\/24/ /g’
oc adm policy add-cluster-role-to-user cluster-admin ayahmad
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
kubectl get deployments.apps blue -o yaml > blue.yaml