marcusianlevine.cifs-mount

marcusianlevine.cifs-mount

Mounting a CIFS Network Shared Drive using Samba

Role Variables

This section explains the variables you can set for this role. This includes variables from defaults/main.yml, vars/main.yml, and any you can set when using the role. Additionally, variables from other roles or global settings (like hostvars or group vars) are included here too.

Required

  • domain: The Active Directory (AD) domain name, e.g. example.domain.com
  • samba_share: The CIFS shared drive's domain name, e.g. //my-cifs-share.example.domain.com/sharedfolder
  • samba_mount_user: The domain username for accessing the shared drive
  • samba_mount_pass: The password for samba_mount_user

Optional

  • samba_mount_path: The location where the shared drive will be mounted (default: /share)
  • samba_user: The username of the person who will own the mounted drive (default: ansible_user_id)
  • samba_home: The home directory of samba_user (default: {{ ansible_env.HOME }})

Example Playbook

    - hosts: servers
      vars_files:
        - secrets/mysecrets.yml
      roles:
        - role: marcusianlevine.cifs-mount
          domain: example.domain.com
          samba_share: "//my-cifs-share.{{ domain }}/sharedfolder"
          samba_mount_user: myuser
          samba_mount_pass: "{{ vaulted_password_value }}"

License

BSD

Author Information

Written by Marcus Levine for CKM Advisors

Informazioni sul progetto

mount cifs shared drive with samba

Installa
ansible-galaxy install marcusianlevine.cifs-mount
Licenza
bsd-3-clause
Download
591
Proprietario
Data Science + DevOps = DataEng