You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
599 B
YAML
27 lines
599 B
YAML
- name: Include OS-specific variables.
|
|
include_vars: '{{ ansible_os_family }}.yml'
|
|
|
|
- name: Ensure Samba-related packages are installed (RedHat).
|
|
package:
|
|
name:
|
|
- samba
|
|
- samba-client
|
|
- samba-common
|
|
- cifs-utils
|
|
state: present
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Ensure Samba-related packages are installed (Debian).
|
|
apt:
|
|
name:
|
|
- samba
|
|
- samba-common
|
|
state: present
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- name: Ensure Samba is running and set to start on boot.
|
|
service:
|
|
name: '{{ samba_daemon }}'
|
|
state: started
|
|
enabled: true
|