Change name of clashing 'packages' variables 36/107036/3
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 4 May 2020 12:55:18 +0000 (14:55 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 4 May 2020 13:25:07 +0000 (15:25 +0200)
This fixes a regression from b6455ee: 'packages' variable
is injected in 'firewall' role by package_facts module with
a higher priority than variable of same name defined in 'docker'
roles' defaults.

Change-Id: I41e0f992ceaab871ae38fb1b8211fd71c042c9b2
Issue-ID: INT-1578
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/roles/docker/defaults/main.yml
ansible/roles/docker/tasks/main.yml

index 33a86e2..bf32af7 100644 (file)
@@ -2,7 +2,7 @@
 docker:
   log_max_size: 100m
   log_max_file: 3
-packages:
+custom_packages:
   RedHat:
     - python-docker-py
     - python-jsonpointer
index 6006082..3ddfa50 100644 (file)
@@ -10,7 +10,7 @@
   package:
     name: "{{ item }}"
     state: present
-  loop: "{{ packages[ansible_os_family] }}"
+  loop: "{{ custom_packages[ansible_os_family] }}"
 
 - name: Ensure /etc/docker exists
   file: