tripleo-ansible/tripleo_ansible/ansible_plugins
Emilien Macchi 94d52bc00f Relax needs_delete() filter
Don't remove a container when all these conditions are met:
- the container is part of the config_id
- the container is running
- the container isn't in the tripleo_container_manage_config path.

The reason is, we'll let operators to deploy containers individually, so
we don't want to touch other containers not in the config at that time.

Example: as an operator I want to apply ansible on haproxy
(config_step1); so I don't want other containers from config_step1 to be
removed.

This code was here to cleanup containers not part of the config (e.g. if
you upgrade and a container isn't used anymore); but it's too agressive.
If a container isn't needed anymore, it'll need to be handled during the
upgrade steps.

Change-Id: I3103f642ba86111e02d06922876b5f1ac78df602
2019-11-08 14:27:53 +01:00
..
action Add plugin documentation 2019-07-09 20:33:27 -05:00
callback Revert "Revert "Import the json_error callback from tripleo-common"" 2019-06-19 18:29:34 +00:00
filter Relax needs_delete() filter 2019-11-08 14:27:53 +01:00
module_utils Update project structure 2019-06-05 14:27:22 +00:00
modules Molecule job for testing plugins and modules 2019-11-04 01:58:31 +02:00
tests Molecule job for testing plugins and modules 2019-11-04 01:58:31 +02:00