Loading views...
ansible server

ansible server

Date
Date
2019 Dec 19 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Apr 15 16:53
Refs
Refs

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


  • ssh root login
  • python
 
 
 
 
 
 

Recommendations