Commit 41ca11ad authored by rgaudin's avatar rgaudin
Browse files

using a simple flat list for packages (package IDs) as list-of-dict is not of any use

parent 74a9028c
......@@ -15,7 +15,7 @@
- name: Install, upgrade or remove packages
become: yes
become_user: "{{ username }}"
shell: ideascube catalog install --package-cache {{ packages_cache }} --skip-sha256 {{ item.name }}
shell: ideascube catalog install --package-cache {{ packages_cache }} --skip-sha256 {{ item }}
with_items: '{{ ansible_local.config.packages | default(omit) }}'
when: ansible_local.config.packages | length
register: ideascube_catalog_cmd
......@@ -25,7 +25,7 @@
- name: Add CSS for package icon
lineinfile:
dest: /opt/venvs/ideascube/lib/python{{ python3_version }}/site-packages/ideascube/static/ideascube/cards.css
line: '.card.{{ item.name|splitext|first|replace(".", "\.") }} { background-image: url("http://{{ kiwix_fqdn }}/{{ item.name }}/-/favicon"); }'
line: '.card.{{ item|splitext|first|replace(".", "\.") }} { background-image: url("http://{{ kiwix_fqdn }}/{{ item }}/-/favicon"); }'
insertafter: EOF
state: present
with_items: '{{ ansible_local.config.packages | default(omit) }}'
......
......@@ -117,7 +117,7 @@ def build_extra_vars(name, timezone, language, language_name, wifi_pwd,
'wikifundi_languages': wikifundi_languages,
'aflatoun_languages': aflatoun_languages,
'edupi': edupi,
'packages': [{"name": x, "status": "present"} for x in packages],
'packages': packages,
'captive_portal': True,
'custom_branding_path': '/tmp',
'admin_account': "admin",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment