2015-07-12 23:13:12 +02:00
|
|
|
|
---
|
2015-09-14 01:08:32 +02:00
|
|
|
|
# Packages needed for domain join
|
|
|
|
|
|
2016-05-02 22:15:44 +02:00
|
|
|
|
# Badlock wrong resolution: downgrading SAMBA
|
|
|
|
|
|
|
|
|
|
- name: Copying scripts for fixing SAMBA
|
|
|
|
|
copy:
|
|
|
|
|
src: "{{ item }}"
|
|
|
|
|
dest: "/var/lib/{{ ansible_local.domain.domainfull }}/bin/{{ item }}"
|
|
|
|
|
owner: root
|
|
|
|
|
mode: 0755
|
|
|
|
|
with_items:
|
|
|
|
|
- downgrade_samba.sh
|
|
|
|
|
|
|
|
|
|
- name: Verifying SAMBA version on client
|
|
|
|
|
shell: dpkg -l | grep libsmbclient
|
|
|
|
|
register: check_samba_version
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
changed_when: "'2:4.1.6+dfsg-1ubuntu2' not in check_samba_version.stdout"
|
|
|
|
|
|
2016-07-11 20:59:44 +02:00
|
|
|
|
#- name: Downgrading SAMBA if not the right version
|
|
|
|
|
# shell: "/var/lib/{{ ansible_local.domain.domainfull }}/bin/downgrade_samba.sh"
|
|
|
|
|
# when: check_samba_version|changed
|
|
|
|
|
#
|
|
|
|
|
#- name: Checking again for the correct SAMBA version
|
|
|
|
|
# shell: dpkg -l | grep libsmbclient
|
|
|
|
|
# register: recheck_samba_version
|
|
|
|
|
# changed_when: "'2:4.1.6+dfsg-1ubuntu2' in check_samba_version.stdout"
|
2016-05-02 22:15:44 +02:00
|
|
|
|
|
2015-09-14 01:08:32 +02:00
|
|
|
|
- name: Installing domain packages
|
|
|
|
|
apt:
|
2015-09-14 01:15:51 +02:00
|
|
|
|
pkg: '{{ item }}'
|
2015-09-14 01:08:32 +02:00
|
|
|
|
state: present
|
2015-07-12 23:13:12 +02:00
|
|
|
|
with_items:
|
|
|
|
|
- winbind
|
|
|
|
|
- samba
|