37a4e28d5f5e11b35dcdbc8d9ea69890f72fcbaf
[autocluster.git] / ansible / node / roles / tarball_common / tasks / unpack_binary.yml
1 ---
2 - name: unpack binary tarball
3   unarchive:
4     src:  "{{ binary_tarball }}"
5     dest: "{{ tarball_install_prefix | realpath | dirname }}"
6     remote_src: True
7     creates: "{{ tarball_install_prefix }}"
8
9 - name: setup path
10   template:
11     src: etc-profile.j2
12     dest: /etc/profile.d/autocluster_samba.sh
13
14 - name: install directory
15   file:
16     path: "{{ install_dir }}"
17     state: directory
18
19 # Yes, this is complete overkill because it installs development
20 # packages.  However, it is a zero-effort method of ensuring that all
21 # run-time dependencies are installed...
22 - name: run Samba bootstrap script
23   shell: >
24     {{ bootstrap_installed | quote }} >{{ install_bootstrap_log }} 2>&1 && \
25     touch {{ install_bootstrap_ok }}
26   args:
27     creates: "{{ install_bootstrap_ok }}"