# install F-Secure

**URL:** <https://forum.ansible.com/t/install-f-secure/14024>\
**Category:** Ansible Project\
**Created:** [November 28, 2013, 3:39pm UTC](https://forum.ansible.com/t/install-f-secure/14024 "2013-11-28T15:39:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Patermann](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Post date:** [November 28, 2013, 3:39pm UTC](https://forum.ansible.com/t/install-f-secure/14024/1 "2013-11-28T15:39:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kahlil.hodgson](https://avatars.discourse-cdn.com/v4/letter/k/b9bd4f/32.png) [@kahlil.hodgson](https://forum.ansible.com/u/kahlil.hodgson)\
**Post date:** [November 28, 2013, 10:43pm UTC](https://forum.ansible.com/t/install-f-secure/14024/2 "2013-11-28T22:43:37Z")

</div>

Something like:

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

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

- name: remove f-secure install script  
&nbsp;&nbsp;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

---

<div class="post-metadata">

**Author:** ![Marc\_Patermann](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Post date:** [November 29, 2013, 2:06pm UTC](https://forum.ansible.com/t/install-f-secure/14024/3 "2013-11-29T14:06:44Z")

</div>

Kahlil Hodgson schrieb (28.11.2013 23:43 Uhr):

> Something like:
> 
> - name: temporary f-secure install script  
> &nbsp;&nbsp;copy: src=relative/path/to/local/f-secure-linux-security-9.20.2520  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dest=/tmp/f-secure-linux-security-9.20.2520
> 
> - name: run f-secure installer  
> &nbsp;&nbsp;command: /tmp/f-secure-linux-security-9.20.2520 --command-line-only  
> --another-option
> 
> - name: remove f-secure install script  
> &nbsp;&nbsp;file: name=/tmp/f-secure-linux-security-9.20.2520 state=absent

Thanks!

Marc
