kayobe/ansible/inspection-store.yml
Mark Goddard 4038c8226b Change reserved keyword 'action' to 'kayobe_action'
For several roles (cadvisor, inspection-store, docker-registry, etc.),
we use an 'action' variable, in a similar manner to kolla-ansible,
to determine the current action being performed (deploy,
reconfigure, upgrade). It is likely this information will be
useful for custom playbooks, so we should expose it. The 'action'
keyword is reserved, and its use triggers a warning, so we change its
name to kayobe_action before advertising it to users.

Change-Id: I5ffbb8b014a31e27141bfc8bf780297d81c840be
Story: 2001663
Task: 12604
2018-05-21 16:00:57 +01:00

19 lines
578 B
YAML

---
# Deploy/pull/reconfigure/upgrade inspection data store.
#
# Follows kolla-ansible service deployment patterns.
#
# Variables:
# action: One of deploy, destroy, pull, reconfigure, upgrade
- name: Ensure inspection store is deployed
hosts: controllers[0]
tags:
- inspection-store
roles:
- role: inspection-store
inspection_store_action: "{{ kayobe_action }}"
inspection_store_enabled: "{{ inspector_store_enabled }}"
inspection_store_port: "{{ inspector_store_port }}"
inspection_store_config_path: "{{ config_path }}/inspection-store"