I am working on a ansible role to automate the installation of vertica. The role is running on a 3 node cluster . I am stuck in 2 places.
I am trying to run the below command, I want to pass the hosts from my inventory of a group, I have passed run_once which will run only on 1st host ( which is what i want) but how to pass all the 3 hosts , like --hosts xx.xxx.xx.xx,xx.xxx.xx.xx,xx.xxx.xx.xx how can i achieve that?
I want ansible to use the pem key i pass for installing vertica. Where should the key be stored.
- name: Install vertica command: /opt/vertica/sbin/install_vertica --hosts x.xx.xx.xx,xx.xxx.xx.xx,xx.xxx.xx.xx --rpm /opt/vertica-{{ vertica_version }}.x86_64.RHEL6.rpm --dba-user-password-disabled --point-to-point --data-dir /vertica/data --ssh-identity x.pem when: vertica_already_installed|failed run_once: True become: yes
Looking for suggestions!
Thanks in advance!