Configuration using Ansible
Configure Apache Web Server(http) create file: #vim http.yml & write the code --- - hosts: apache remote_user: root vars: http_port: 80 max_client: 300 tasks: - name: installing apache web server(httpd) yum: name: httpd state: latest - name: starting apache web server service service: name: httpd state: started enabled: yes - name: disable selinux lineinfile: dest=/etc/selinux/config regexp='^SELINUX=' line='SELINUX=disabled' state=present - name: disable iptables lineinfile: dest=/etc/rc.local regexp='' line='iptables -F' state=present ###################### Deploy Web Application --- - hosts: apache remote_user: root vars: http_port: 80 max_client: 300 tasks: - name: copying application files copy: src: /var/www/cloud/adhoc.tar dest: /var/