Fix idempotence issue in dns role 22/87422/7
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Fri, 10 May 2019 07:29:10 +0000 (09:29 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 15 May 2019 09:27:26 +0000 (11:27 +0200)
commit25d56e36412b607fa55030072f550e5550b73e8b
treeb034f4454ba44e031119834ea8f1b13533e5fb3f
parente7fd64586455a7c1270c1b1c846c19e030780315
Fix idempotence issue in dns role

Docker_container module was called twice: in a taks
'Start dns server container' and then as a handler
but there was a divergent set o parameters for the
module in them. This had the efect of the container
being started by the means of the task itself but
immediately after it was killed and started again
by the handler because it had different set of
arguments for the module. The fix is to include the
handler itself as a task so the whole run is idempotent.

Change-Id: I9078f9dfe5894d94d4b6a9e44411f034508992e7
Issue-ID: OOM-1845
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/roles/dns/handlers/main.yml
ansible/roles/dns/tasks/main.yml