diff --git a/samba/README.md b/samba/README.md new file mode 100644 index 00000000..7e3f4f12 --- /dev/null +++ b/samba/README.md @@ -0,0 +1,11 @@ +# Amavis + +Installation and basic configuration of samba. + +## Tasks + +Minimal configuration is in `tasks/main.yml` + +## Available variables + +The full list of variables (with default values) can be found in `defaults/main.yml`. diff --git a/samba/defaults/main.yml b/samba/defaults/main.yml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/samba/defaults/main.yml @@ -0,0 +1 @@ +--- diff --git a/samba/handlers/main.yml b/samba/handlers/main.yml new file mode 100644 index 00000000..af6e2add --- /dev/null +++ b/samba/handlers/main.yml @@ -0,0 +1,9 @@ +--- +- name: restart nmbd + service: + name: nmbd + state: restarted +- name: restart smbd + service: + name: smbd + state: restarted diff --git a/samba/meta/main.yml b/samba/meta/main.yml new file mode 100644 index 00000000..b90fd830 --- /dev/null +++ b/samba/meta/main.yml @@ -0,0 +1,19 @@ +galaxy_info: + author: Evolix + description: Installation and basic configuration of samba. + + issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues + + license: GPLv2 + + min_ansible_version: 2.0 + + platforms: + - name: Debian + versions: + - jessie + +dependencies: [] + # List your role dependencies here, one per line. + # Be sure to remove the '[]' above if you add dependencies + # to this list. diff --git a/samba/tasks/main.yml b/samba/tasks/main.yml new file mode 100644 index 00000000..79dba4b9 --- /dev/null +++ b/samba/tasks/main.yml @@ -0,0 +1,4 @@ +- name: ensure packages are installed + apt: + name: samba + state: present