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



On 29 November 2013 02:39, Marc Patermann
<[email protected]> wrote:
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to