Giter VIP home page Giter VIP logo

linux-ansible's Introduction

Linux Ansible

Ansible Role for Linux Server Configuration.

What can I do with this role?

Different actions are available by changing action variable. For instance:

- name: Create VM
  hosts: localhost
  roles:
  - role: linux-ansible
    vars:
      action: grow_lvm
      lvmap:
        "/": "+100%FREE"
      ...

The following actions are available:

  • grow_lvm: Executes needed tasks after Linux Server deployment.
  • setup_hostname: Setups hostname and resets /etc/hosts.
  • upgrade_packages: Upgrades all packages and distribution. Also, can install packages you want.
  • install_docker: Installs Docker Engine.
  • post_deploy: Groups needed actions to configure a newly created machine.

linux-ansible's People

Contributors

atorrescogollo avatar aminvakil avatar

Stargazers

Jose Briceño avatar David Hernando avatar

Watchers

 avatar

linux-ansible's Issues

Static IP in /etc/hosts

Some documentations suggest using static IP in /etc/hosts if you have an static IP like:
https://wiki.archlinux.org/index.php/Installation_guide#Network_configuration

If the system has a permanent IP address, it should be used instead of 127.0.1.1.

Some require your static IP to be in /etc/hosts like:
https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster#Add_an_.2Fetc.2Fhosts_entry_for_your_IP_address

Note: This also means editing or rather removing the address 127.0.1.1 that might be present as default.

This task removes that line from /etc/hosts if it's needed.

- name: "Fix /etc/hosts"
become: yes
copy:
dest: /etc/hosts
content: |
127.0.0.1 localhost
127.0.1.1 {{inventory_hostname_short}} {{inventory_hostname}}
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

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.