/ansible-deploy

Ansible project to deploy and configure lots of tools automatically after updating inventory, and variables.

Primary LanguageShellGNU General Public License v2.0GPL-2.0

Welcome to Ansible project

Image

How to use?

> git clone https://github.com/Chandrashekhars816/ansible-deploy.git
> cd ansible-deploy
> bash ansibleinstall

## Very Important step make sure to update it

> ssh-keygen # press enter then enter then enter till prompt stops asking
> ssh-copy-id root@ipoftheserver

## 1. what this project does?
```markdown
• Features:
 - This project does configure the following tasks:
 a) install jenkins servers.
 b) Rhel 8 iso yum configuration.
 c) pull the docker images that you want from the dockerhub ( only those that don't require you to login ).
 d) some additional tasks such as screen resolution inside virtualbox vm of rhel 8.
 e) It will also install jupyter and some python libraries used for machine learning projects.
 f) all you need to configure the roles according to your requirements.
 g) It will give you very simple commands to push and commit ( fast commit ) all you need is to configure
 some things for these commands to work easily.
 h) configures nfs server and client in remote system the configuration must be collocated to work properly ( WIP and still have bugs )
 i) configures kubernetes main and worker node ( WIP and still have the bugs )

 Such as:
> ssh-key public key must be given of the user which will be used for pushing and pulling as 'fast commit'
             
           **known bugs:
                    - push will fail when there's unrelated history files on the remote repo.
                    - It will only push at master remote branch.**

2. What are prequsites?

       a) Ansible must be installed.
      
       b) All the controlled nodes must have given ssh key access for login and don't require the passwords.

       c) Controller node must have entry in thier host files with the alias for the remote nodes as the file is at /etc/hosts and entry should be like:
       `127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
        ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
        192.168.43.128 server1
        192.168.81.43  server2
        192.168.97.84  server3`
      
     **d) It will only work in RHEL 8 version.**

3. How to use?

       1. Go to the inventory file ( hosts ) in your current directory:         
       To install jenkins: 
       a) Change your inventory file from such that:
     **`[jenkinsservers]
        localhost`**

                   To

     **`[jenkinsserver]
        server1
        server2
        server3

        [machine]
        server1
        server2
        
        [resolution]
        server1
        server2
       
        [registry]
        server1
        server2`**


       2. run the command `ansible-playbook setup.yml`

4. How to browse your wordpress site on the container

       1. Go to the terminal.
       2. type command "ip addr"
       3. notice your ip and the wordpress server is running on 8082 port.
       4. Open your windows browser and type in url http://[the above step i.p.]:8082 
       5. Well here goes your wordpress server deployed on the container

Contact

Having trouble with using the project? Connect me on LinkedIn Chandra Shekhar Sharma will help you sort it out. CIAO)/