xci: get-opnfv-scenario-requirements: Fix stale scenario facts 95/57495/1
authorMarkos Chandras <mchandras@suse.de>
Wed, 16 May 2018 18:31:43 +0000 (19:31 +0100)
committerMarkos Chandras <mchandras@suse.de>
Wed, 16 May 2018 18:31:43 +0000 (19:31 +0100)
We always need to update the local facts for the scenario we are
deploying in order to avoid deployments with stale data.

Change-Id: I36298d2ebc1b813e95a2f213cd13649a0b4e04bf
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/get-opnfv-scenario-requirements.yml

index 945a780..a916570 100644 (file)
@@ -86,8 +86,6 @@
         state: directory
       become: true
 
-    # NOTE(hwoarang) We have to check all levels of the local fact before we add it
-    # otherwise Ansible will fail.
     - name: Record scenario information
       ini_file:
         create: yes
         value:  "{{ xci_scenario.role | basename }}"
         path: "/etc/ansible/facts.d/xci.fact"
       become: true
-      when: ansible_local is not defined
-        or (ansible_local is defined and ansible_local.xci is not defined)
-        or (ansible_local is defined and ansible_local.xci is defined and ansible_local.xci.scenarios is not defined)
-        or (ansible_local is defined and ansible_local.xci is defined and ansible_local.xci.scenarios is defined and ansible_local.xci.scenarios.role is not defined)
 
     - name: Fail if {{ deploy_scenario }} is not supported
       fail: