Skip to content

Instantly share code, notes, and snippets.

View RGMishan's full-sized avatar
🎯
Automation Yeah!!!!!

Mishan Regmi RGMishan

🎯
Automation Yeah!!!!!
View GitHub Profile
---
# tasks file for flbonAWS
- name: "Installing haproxy"
package:
name: "haproxy"
state: present
- name: "Copying Template of Config file from the Controller System"
template:
- hosts: localhost
gather_facts: no
vars_files:
- credential.yml
tasks:
- name: "boto3 installation"
pip:
name: "boto3"
state: present
# importing libraries
import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
import joblib as jb
data = pd.read_csv("Salary_Data.csv")
#data_head and data information
data.head()
<pre>
<?php
print `/usr/sbin/ifconfig`;
?>
</pre>
#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# https://www.haproxy.org/download/1.8/doc/configuration.txt
#
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# Global settings
lbport: 8080
webserverport: 80
- hosts: loadbalancer
vars_files:
- haproxyVars.yml
tasks:
- name: "Installing Package of HAProxy"
package:
name: "haproxy"
state: present
- name: "Copying Template of Config file from the Controller System"
- hosts: 192.168.56.104
tasks:
- name: "Installing HTTPD Package"
package:
name: "httpd"
state: present
- name: "Creating an index file"
copy:
content: "<b>This is Static Regular HTTPD Automation</b>"
- hosts: 192.168.56.105
vars_files:
- slave_vars.yml
tasks:
- name: "Creating a directory"
file:
state: directory
path: "{{ directory_path }}"
- name: "Copying hdfs-site.xml"