Signed-off-by: Martin Schwenke <martin@meltin.net>
register: ad_active
- name: remove smb.conf
+ vars:
+ tdir: "{{ tarball_install_prefix }}/etc"
+ pdir: /etc/samba
+ samba_config_dir: "{{ tdir if tarball is not none else pdir }}"
file:
- path: /etc/samba/smb.conf
+ path: "{{ samba_config_dir }}/smb.conf"
state: absent
when: not ad_active.stat.exists
- packages
loop_control:
loop_var: task
+ when: tarball is none
+
+- include_role:
+ name: tarball_common
+ tasks_from: install_ad.yml
+ vars:
+ source_tarball: "{{ tarball }}"
+ when: tarball is not none
- include_tasks: generic/{{ task }}.yml
with_list: