Code Monkey home page Code Monkey logo

ansible-role-samba's Introduction

CI

ansible-role-samba

Install/configure samba

Platforms

Supported platforms

  • CentOS 7
  • RockyLinux 8
  • AlmaLinux 8
  • Debian 10 (Buster)
  • Debian 11 (Bullseye)
  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS

Role Variables


# Packages required to install samba
samba_packages:
  - samba
  - cifs-utils

# Should this server function within ActiveDirectory
samba_ad: true

# Should this server support legacy Netbios
samba_netbios: false

# Configuration template
samba_conf: samba.conf.j2

# dfree script
samba_dfree_script: /usr/local/bin/dfree

# List of shares
samba_shares: []

# Should the samba users be defined as OS users
samba_create_users: false

# List of local samba users
samba_users: []

# List of samba scripts
samba_scripts: []

# should this role manage firewall rules
samba_manage_firewall: true

# samba firewall ports
samba_firewall_ports_netbios:
  - { port: 137, proto: udp }
  - { port: 138, proto: udp }
  - { port: 139, proto: tcp }
samba_firewall_ports_ad:
  - { port: 445, proto: tcp }
  - { port: 445, proto: udp }

Example Playbook


- name: sample playbook for role 'samba'
  hosts: all
  vars:
    samba_ad: True
    samba_netbios: True
    samba_create_users: True
    samba_users: [{'name': 'user1', 'password': 'password1'}, {'name': 'user2', 'password': 'password2'}]
    samba_shares: [{'name': 'homes', 'settings': {'comment': 'Home Directories', 'browseable': 'yes', 'read__only': 'no', 'create__mask': '0700', 'directory__mask': '0700', 'valid__users': '%S', 'writeable': 'yes', 'public': 'yes', 'dfree__command': '/usr/local/bin/dfree'}}, {'name': 'private', 'settings': {'comment': 'private directories', 'browseable': 'no', 'public': 'no', 'dfree__command': '/usr/local/bin/dfree'}}]
  tasks:
    - name: Include role 'samba'
      include_role:
        name: samba

ansible-role-samba's People

Contributors

mark-it-kracht avatar rgevaert avatar semantic-release-bot avatar

Watchers

 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.