Hi all, I'm trying to make a playbook to automate the installation of the GAIA API on a Check Point (virtual) appliance as per sk143612.
Here are the steps in the article:
- Download the engine package to your machine.
- Open the tgz file: tar -zxvf Check_Point_gaia_api.tgz
- Run the installer: ./install_gaia_api.sh
- Run gaia_api status to verify it is up and running
I created an ansible playbook:
- name: Create gaia_api directory
file:
path: /var/log/gaia_api
state: directory
- name: SCP and extract gaia_api package
unarchive:
src: Check_Point_gaia_api.tgz
dest: /var/log/gaia_api
mode: u+x,g+x,o+x
- name: Install gaia_api
raw: sh /var/log/gaia_api/install_gaia_api.sh
ignore_errors: yes
It works, up until the last task. Doing a gaia_api status shows: "-bash: /bin/gaia_api: No such file or directory"
I also tried the following:
- name: Install gaia_api
command: /var/log/gaia_api/install_gaia_api.sh
args:
executable: /bin/bash
even tried copying the install_gaia_api.sh script to my Ansible machine and using the script module:
- name: Install gaia_api
script: install_gaia_api.sh
Any suggestions?