install F-Secure

Hi,

I have to install F-Secure.
It comes as a single file script/BLOB which installs RPMs and does stuff - and is a real pain ...

I need the install script f-secure-linux-security-9.20.2520 at the remote machine.

The script has to be invoked with parameters like "--command-line-only".
The install script then could be deleted.

One configuration file has to be altered. (This is easy.)

How do I achieve this best with ansible?

With a copy and a shell task?
Or is there a better way?

The documentation of the module script says:
"The local script at path will be transfered to the remote node and then executed."
But there is only one parameter and the file is somewhere under /etc/ansible on my ansible host and in i.e. /tmp on the remote machine. Can local and remote path differ?

Marc

Something like:

- name: temporary f-secure install script
  copy: src=relative/path/to/local/f-secure-linux-security-9.20.2520
        dest=/tmp/f-secure-linux-security-9.20.2520

- name: run f-secure installer
  command: /tmp/f-secure-linux-security-9.20.2520 --command-line-only
--another-option

- name: remove f-secure install script
  file: name=/tmp/f-secure-linux-security-9.20.2520 state=absent

K

Kahlil (Kal) Hodgson GPG: C9A02289
Head of Technology (m) +61 (0) 4 2573 0382
DealMax Pty Ltd (w) +61 (0) 3 9008 5281

Suite 1415
401 Docklands Drive
Docklands VIC 3008 Australia

"All parts should go together without forcing. You must remember that
the parts you are reassembling were disassembled by you. Therefore,
if you can't get them together again, there must be a reason. By all
means, do not use a hammer." -- IBM maintenance manual, 1925

Kahlil Hodgson schrieb (28.11.2013 23:43 Uhr):

Something like:

- name: temporary f-secure install script
  copy: src=relative/path/to/local/f-secure-linux-security-9.20.2520
        dest=/tmp/f-secure-linux-security-9.20.2520

- name: run f-secure installer
  command: /tmp/f-secure-linux-security-9.20.2520 --command-line-only
--another-option

- name: remove f-secure install script
  file: name=/tmp/f-secure-linux-security-9.20.2520 state=absent

Thanks!

Marc