kolla-ansible/ansible/roles/opendaylight/handlers/main.yml
Eduardo Gonzalez 846c15d8e1 Allow set tty for containers
This change adds support to comfigure tty,
it was enabled by default but a recent patch
removed it. Some services such as Karaf in opendaylight
requires a TTY during startup.

Closes-Bug: #1806662
Change-Id: Ia4335523b727d0e45505cbb1efb40ccf04c27db7
2018-12-05 11:44:37 +00:00

36 lines
1.3 KiB
YAML

---
- name: Restart opendaylight container
vars:
service_name: "opendaylight"
service: "{{ opendaylight_services[service_name] }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
volumes: "{{ service.volumes }}"
privileged: "{{ service.privileged | default(False) }}"
dimensions: "{{ service.dimensions }}"
tty: "{{ service.tty }}"
when:
- kolla_action != "config"
- service.enabled | bool
- service.host_in_groups | bool
- opendaylight_config_json | changed
or opendaylight_config_start_odl | changed
or opendaylight_config_custom_props | changed
or opendaylight_config_jetty | changed
or opendaylight_config_features | changed
or opendaylight_config_ovsdb | changed
or opendaylight_config_tomcat | changed
or opendaylight_config_logging | changed
or opendaylight_config_netvirt | changed
or opendaylight_config_netvirt_acl | changed
or opendaylight_config_env | changed
or opendaylight_config_akka | changed
or opendaylight_config_modules | changed
or opendaylight_config_module_shards | changed
or opendaylight_config_10_rest_connector | changed
or check_opendaylight_containers | changed