Giter Site home page Giter Site logo

my-ansible-playbooks's Introduction

My-Ansible-Playbooks

Repository for my Ansible Playbooks:

  1. AddingUserToGroup.yml
  • Add a new user called usertest1 in the group users.
  • Create its home directory.
  1. CopyFileFromLocalToRemote.yml
  • Playbook to copy from source (local) to dest(remote)
  1. DeletingUsersFromGroup.yml
  • Delete the user usertest2.
  • Delete its home directory from the system.
  1. PingForTestingPurposes.yml
  • For test only.
  • It performs a ping on the host defined in /etc/ansible/hosts.
  1. RemovingSpecificUsersFromGroup.yml
  • Remove all users with name that start from user* from the group users.
  • Will also remove all users except those who start with ext*, use "-g wheel" and "grep -v ext*".
  • The playbook has been tested on Centos and Debian.
  1. SNMPConigurationAndPackages.yml
  • Install the SNMP package.
  • Configure the snmpd.conf.
  • Setup logrotate for snmp.
  • Configure the /etc/sysconfig/snmpd file.
  • Add new firewall rules.
  • Reload the firewall.
  • Reload the snmpd service.
  • All files handled by Ansible will have a comment at the top mentioning "This file is managed by Ansible for references".
  • It has been adapter for Centos7 only.
  1. LVMManipulation.yml
  • Create a VG and LV.
  • Format the dist to ext4.
  • Mount the disk on specific directory.
  1. UpdateGLIBCandRestartNamedService.yml
  • update the Glibc packages
  • Restart the named service.
  1. GatherInformationAboutOS.yml
  • Retrieve versions of Kernel, Networker, Shinken, BladeLogic and VMtool.
  • The output will be appended on a file in /tmp/rhelroot.
  1. ReplicateUserDirectoryAndKeys.yml
  • Create account for non-existant users.
  • Add the users to wheel group and setup the permissions.
  • creating the .ssh directory and setup the permission.
  • Configure SELINUX on the .ssh directory.
  • Write key to authorized_key file directly using the bullet proof approach.
  1. ChangePassword.yml
  • change password of a user.
  • Always use the hash of the password in the password field.
  • The goal is to update the /etc/shadow file on the remote machines.
  1. ReconfigureExportPS1BAsh.yml
  • Delete .bash_profile
  • Re Append with ps1 configuration
  1. InventoryUsingAnsibleCMDB.yml
  1. AuditLoginLinux.yml

my-ansible-playbooks's People

Contributors

jaykishanmutkawoa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.