Skip to content

opsxcq/ansible-role-samba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samba role for ansible

This playbook created a samba container.

Variables

  • name - The name of the current container.
  • volumes - Volume mappings

Env variables

The variable env will be applied as the environment variables of the container. Bellow some variables that you can use to configure the samba container with it.

  • USERS - List of users for the container, comma separated.
  • Passwords, set the value to the user key, it will be set as the password.
  • SHARES_CONF - Aditional configuration of the shares in the samba server.

Example playbook

- hosts: all
  vars:
    name: samba-test
    env:
      USERS: "opsxcq"
      opsxcq: "admin"
      SHARES_CONF: |
        [Temp]
        path = "/share/"
        read only = no
        writable = yes
        valid users = opsxcq
        write list = opsxcq
        admin users = opsxcq
    volumes:
      - "/tmp:/share"
  roles:
    - ospxcq.samba

About

Ansible role for running Samba in a container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published