ansible server
yum update -y
yum install ansible nano git -y
echo "[delab]">> /etc/ansible/hosts
echo 10.0.50.171>> /etc/ansible/hosts
echo 10.0.50.172>> /etc/ansible/hosts
echo 10.0.50.173>> /etc/ansible/hosts
echo 10.0.50.174>> /etc/ansible/hosts
ansible cents -m ping
yes
yes
yes
ansible cents -m ping -k
ansible cents -a "yum update -y" -k
ansible all -m yum -a "name=php state=present" -k
mkdir /var/www
cd /var/www
git clone repository
chcon -R -t httpd_sys_content_t /var/www/folder/
run all.yaml
ansible node