Member since
08-22-2019
7
Posts
0
Kudos Received
0
Solutions
08-23-2019
12:53 PM
Perfect. Here's my solution based on your feedback. - name: Check if Ambari setup has already run command: grep 'jdbc' /etc/ambari-server/conf/ambari.properties register: ambari_setup_check check_mode: no ignore_errors: yes changed_when: no - name: Setup Ambari server command: printf '%s\n' y ambari y y n | ambari-server setup -j /usr/lib/jvm/java-8- openjdk-amd64 become: yes when: ambari_setup_check.rc == 1
... View more
08-22-2019
02:36 PM
I am creating ansible scripts to bootstrap our ambari servers. I need to check if ambari-server setup has already been ran so that re-running the ansible scripts do not error out when it gets to that step. The easiest way to make these idempotent in ansible is to check for the existence of a file, but I haven't been able to find any obvious file created by the setup process that I can rely on.
... View more
Labels:
- Labels:
-
Apache Ambari