Giter Club home page Giter Club logo

ansible's Introduction

Internet Guru Ansible

This project contains handy ansible playbooks divided into several environments. It installs 'global' tag globally and 'user' tag for all accounts individually. Roles are installed for each playbook if the same playbook file exists with a roles. prefix, e.g. roles.ubuntu.yml for ubuntu.yml.

Options

  • -s|--skip-global Skip tasks with 'global' tag.
  • -f|--force Install tasks with 'force' tag.

Requirements

sudo apt update
sudo apt upgrade -y
sudo apt install python3-pip
sudo pip install -U ansible
sudo apt install git

Setup Guide

This is a complete simple use-case on how to install basic environments on a fresh Ubuntu installation. To update or sync after adding a new user account, repeat the very same process.

  1. Install updates or existing packages
    The third command will reboot the computer which may or may not be necessary.

    sudo apt update
    sudo apt upgrade -y
    sudo reboot
    
  2. Clone or update ansible project
    This command either creates (clones) or updates the existing global ansible repository.

    sudo mkdir -p /usr/local/share/ansible/
    cd /usr/local/share/ansible
    sudo git clone https://github.com/internetguru/ansible.git \
      || sudo git pull
    
  3. Install ansible for all users See options below and notice another reboot command.

    cd /usr/local/share/ansible
    sudo ./install.sh fresh.yml ubuntu.yml
    sudo reboot
    

Environments

fresh.yml

Installs essential commands and CLI environment for Debian/Ubuntu.

  • vim
  • curl
  • htop
  • git
  • mc
  • build-essential
  • net-tools
  • gettext
  • tree
  • tldr
  • avahi-daemon
  • Set keep alive SSH
  • Disable wayland

server.yml

Sets up Internet Guru server environment.

ubuntu.yml

Enables Windows-like panel and adds practical programs, scripts and adjustments for Ubuntu. It also adds basic developer programs and tools.

  • gnome-screensaver
  • gnome-session
  • gnome-settings-daemon
  • gnome-tweaks

clear.yml

Clears previously installed applications and configuration that has been withdrawn.

  • /usr/local/share/.oh-my-zsh
  • ~/.ansible
  • ~/bashcfg
  • ~/butt
  • ~/omgf
  • ~/vimrc
  • ~/zshrc
  • ~/.zsh_history
  • ~/.zshrc
  • ~/.zshrc.local

Shortcuts

  • Ctrl+Alt+i display README of installed version
  • Ctrl+Alt+s lock and sleep (suspend)
  • Ctrl+Alt+f screen off
  • Ctrl+Alt+l toggle night-light (on/off/auto)
  • Ctrl+Alt+End power off dialog
  • Alt+Shift+End restart dialog
  • Ctrl+Shift+PgUp volume up
  • Ctrl+Shift+PgDown volume down
  • Ctrl+Shift+Del mute volume
  • Win+s application overview
  • Win+c calculator
  • Pause, Menu compose keys

Troubleshooting

  • "Unknown error when attempting to call Galaxy"
    • Check your internet connection and run ansible again.
  • "already installed" warnings
    • Ignore.
  • Sublime Text not downloading shared settings after installation.
    1. Open Sublime Text.
    2. Run Tools / Command Pallette… (ctrl+shift+p) / Install Package Control (or just type ipc and press Enter).
    3. Restart (close and run) Sublime, wait until Sync Settings plugin is installed.
    4. Run Tools / Command Palette… (ctrl+shift+p) / Sync Settings: Download (or just type download and press Enter). Ignore warning message(s).
    5. Note: You may need to run the Download command again for theme to take effect.
  • Global Vim plugins are not installed
    1. sudo vim
    2. Hit Enter repeatedly, until insallation starts.
    3. After installation finishes, hit Enter again.
    4. Exit vim using :q two times.
  • Wireless mouse wakes up the computer.
    • No sw solution found. Turn off your mouse physically if possible.
  • Keyboard switching mismatch, similar to a 18.04 bug.
    • Reboot or re-login or restart gnome-shell with killall -3 gnome-shell or Alt+F2, type r and hit Enter.
  • Unable to launch Ansible info desktop icon
    • Right click on the icon and click on Allow Launching.

Howtos

Copyright

Copyright © Internet Guru

This software is licensed under the CC BY-NC-SA license. There is NO WARRANTY, to the extent permitted by law. See the LICENSE file.

For commercial use, a nominal fee may be applicable based on the company size and the nature of their product. In many instances, this could result in no fees being charged at all. Please contact us at [email protected] for further information.

Please do not hesitate to reach out to us for inquiries related to seminars, workshops, training, integration, support, custom development, and additional services. We are more than happy to assist you.

ansible's People

Contributors

jiripavelka avatar petrzpav avatar

Stargazers

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