--- - name: Get ARA json data shell: | # noqa 305 {{ local_working_dir }}/bin/ara result list --all -f json register: ara_data no_log: true changed_when: false - name: Collect and send data to InfluxDB ara_influxdb: influxdb_url: "{{ influxdb_url|default('') }}" influxdb_port: "{{ influxdb_port }}" influxdb_user: "{{ influxdb_user }}" influxdb_password: "{{ influxdb_password }}" influxdb_db: "{{ influxdb_dbname }}" ara_data: "{{ ara_data.stdout|to_json }}" measurement: "{{ influxdb_measurement }}" data_file: "{{ influxdb_data_file_path }}" only_successful_tasks: "{{ influxdb_only_successful_tasks }}" no_log: true - name: Get ARA json data for undercloud become: true shell: "{{ local_working_dir }}/bin/ara result list --all -f json" # noqa 305 register: ara_root_data no_log: true changed_when: false - name: Collect and send data to InfluxDB ara_influxdb: influxdb_url: "{{ influxdb_url|default('') }}" influxdb_port: "{{ influxdb_port }}" influxdb_user: "{{ influxdb_user }}" influxdb_password: "{{ influxdb_password }}" influxdb_db: "{{ influxdb_dbname }}" ara_data: "{{ ara_root_data.stdout|to_json }}" measurement: "undercloud" data_file: "{{ influxdb_data_file_path }}" only_successful_tasks: "{{ influxdb_only_successful_tasks }}" mapped_fields: false standard_fields: false longest_tasks: 15 when: ara_root_data.stdout != "[]" no_log: true - name: Get ARA json data for overcloud shell: "{{ local_working_dir }}/bin/ara result list --all -f json" # noqa 305 register: ara_oc_data environment: ARA_DATABASE: 'sqlite:///{{ ara_overcloud_db_path }}' no_log: true changed_when: false - name: Collect and send data to InfluxDB ara_influxdb: influxdb_url: "{{ influxdb_url|default('') }}" influxdb_port: "{{ influxdb_port }}" influxdb_user: "{{ influxdb_user }}" influxdb_password: "{{ influxdb_password }}" influxdb_db: "{{ influxdb_dbname }}" ara_data: "{{ ara_oc_data.stdout|to_json }}" measurement: "overcloud" data_file: "{{ influxdb_data_file_path }}" only_successful_tasks: "{{ influxdb_only_successful_tasks }}" mapped_fields: false standard_fields: false longest_tasks: 15 when: ara_oc_data.stdout != "[]" no_log: true