scriptingislife / Bytes-Of-Swiss

Create intentionally vulnerable VMs with Ansible
7 stars 1 forks source link

SMB/FTP support defining multiple shares #32

Open scriptingislife opened 5 years ago

scriptingislife commented 5 years ago

Create a YAML list with FTP/SMB shares then loop over them and add them to the config file.

vars:
    sambashares:
      - name: public
        comment: Public resources
        path: /samba/public
        read_only: yes
        browsable: yes
      - name: private
        comment: Private resources
        path: /samba/private
        read_only: no
        browsable: no

http://scriptingis.life/cool-ansible-3/