GithubHelp home page GithubHelp logo

jack17529 / installingsoftwareusingansibleplaybook Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 14 KB

Ansible playbook to install packages directly from the net as well as pushing from the master node.

License: MIT License

ansible-playbook installation-script remote-execution hosts-file

installingsoftwareusingansibleplaybook's Introduction

InstallingSoftwareUsingAnsible

This is how I helped Senior Lab Manager to install packages in all the labs using his main computer. I automated the process of installing packages using ansible playbook on around 150 computers present in my college.
This playbook installs nmap and nginx packages directly from the net and install java from the java rpm file downloaded by the master node by pushing it to the remote machines.

Instructions

  1. Configure config file. cat ~/.ansible.cfg
  2. Add the remote hosts ips in inventory file using cat ~/inventory
  3. check ansible all --list-hosts
  4. Edit main.yml according to the main.yml file.
  5. Install java. wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/14.0.2+12/205943a0976c4ed48cb16f1043c5c647/jdk-14.0.2_linux-x64_bin.rpm
  6. Run ansible file ansible-playbook -i inventory main.yml
  7. ansible web -m ping
  8. ansible node-1 -m shell -a 'hostname'

References

  1. https://www.techrepublic.com/article/how-to-setup-ssh-key-authentication/
  2. https://www.techrepublic.com/article/how-to-install-apps-remotely-with-ansible/
  3. https://docs.ansible.com/ansible/latest/modules/yum_module.html

installingsoftwareusingansibleplaybook's People

Contributors

jack17529 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.