From faf3b5c765fbadbbf0d1154b15ddb8d41570505c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 28 Nov 2020 19:06:47 +0300 Subject: [PATCH] Feat: Install SMB/CIFS client/server packages --- playbooks/roles/smbclient/tasks/main.yml | 11 +++++++++++ playbooks/roles/smbserver/tasks/main.yml | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 playbooks/roles/smbclient/tasks/main.yml create mode 100644 playbooks/roles/smbserver/tasks/main.yml diff --git a/playbooks/roles/smbclient/tasks/main.yml b/playbooks/roles/smbclient/tasks/main.yml new file mode 100644 index 0000000..d07d5f5 --- /dev/null +++ b/playbooks/roles/smbclient/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install SMB/CIFS client packages for Debian + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: ['cifs-utils', 'smbclient'] + state: latest + update_cache: yes + when: ansible_facts.os_family == 'Debian' diff --git a/playbooks/roles/smbserver/tasks/main.yml b/playbooks/roles/smbserver/tasks/main.yml new file mode 100644 index 0000000..6802142 --- /dev/null +++ b/playbooks/roles/smbserver/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install SMB/CIFS server for Debian + become: true + apt: + autoclean: yes + autoremove: yes + cache_valid_time: 3600 + install_recommends: no + name: ['samba'] + state: latest + update_cache: yes + when: ansible_facts.os_family == 'Debian' -- 2.39.5