Coder Social home page Coder Social logo

ansible_role.fstab's Introduction

ROLE dginhoux.fstab

DESCRIPTION

This role configure linux mounts and generate /etc/fstab.

REQUIREMENTS

SUPPORTED PLATFORMS

Platform Versions
Debian all
EL all
Fedora all
Ubuntu all

ANSIBLE VERSION

Ansible >= 2.13

DEPENDENCIES

None.

INSTALLATION

ANSIBLE GALAXY

ansible-galaxy install dginhoux.fstab

GIT

git clone https://github.com/dginhoux/ansible_role.fstab dginhoux.fstab

USAGE

EXAMPLE PLAYBOOK

- hosts: all
  roles:
    - name: start role dginhoux.fstab
      ansible.builtin.include_role:
        name: dginhoux.fstab

VARIABLES

DEFAULT VARIABLES

Defaults variables defined in defaults/main.yml :

fstab_configure: true

fstab_reload: true
fstab_create_additional_dirs: true

fstab_tmpfs: false
fstab_tmpfs_options:
  - nodev
  - nosuid
  - noatime

fstab_sysfs: true
fstab_sysfs_options:
  - defaults
  - noatime

fstab_proc: true
fstab_proc_options:
  - defaults
  - noatime

fstab_mounts:
  - source: /dev/sda1
    target: /boot
    type: ext2
    options:
      - defaults
      - noatime
    dump: false
    fsck: 1

  - source: /dev/mapper/vg0-lv--root
    target: /
    type: xfs
    options:
      - defaults
      - noatime
    dump: false
    fsck: 1

  - source: /dev/mapper/vg0-lv--home
    target: /home
    type: xfs
    options:
      - defaults
      - noatime
    dump: false
    fsck: 1

  - source: /dev/mapper/vg0-lv--opt
    target: /opt
    type: xfs
    options:
      - defaults
      - noatime
    dump: false
    fsck: 1

  - source: /dev/mapper/vg0-lv--tmp
    target: /tmp
    type: xfs
    options:
      - defaults
      - noatime
    dump: false
    fsck: 0

  - source: /dev/mapper/vg0-lv--usr
    target: /usr
    type: xfs
    options:
      - defaults
      - noatime
    dump: false
    fsck: 1

  - source: /dev/mapper/vg0-lv--var
    target: /var
    type: xfs
    options:
      - defaults
      - noatime
    dump: false
    fsck: 1

  - source: /dev/mapper/vg0-lv--swap
    target: none
    type: swap
    options:
      - sw
    dump: false
    fsck: 0

DEFAULT OS SPECIFIC VARIABLES

Those variables files are located in vars/*.yml are used to handle OS differences.
One of theses is loaded dynamically during role runtime using the include_vars module and set OS specifics variable's.

NOT USED BY THIS ROLE

AUTHOR

Dany GINHOUX - https://github.com/dginhoux

LICENSE

MIT

ansible_role.fstab's People

Watchers

Dany GINHOUX 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.