Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,26 @@ Please have a look at others configurations files to see how it has been done. W
- Add a new JSON section to describe what must be installed on your device. **This is JSON syntax, comma and quote a really important!**
- **kb-gin-conakry** is the name of your device
- **kalite** is the name of the role played but also the name of the application we want to install
- **activated** Whether we want install or not the application. If True, the application will be installed and configured on the target device. If leaved True, the target device will be updated continuously at each time the later will be connected on Internet
- **activated** Whether we want install or not the application. If true, the application will be installed and configured on the target device. If leaved true, the target device will be updated continuously at each time the later will be connected on Internet
- **version** For some application it is better to lock the version number instead of installing always the last version. A new version has always to be tested before deployment.
- **language** You can specify the language you wish to use (must be on 2 letters)
```
"kb-bsfcampus-sen": {
"bsfcampus": {
"activated": "True",
"activated": true,
"version": "100816"
},
"kalite": {
"activated": "True",
"activated": true,
"version": "0.16.8",
"language": ["fr"]
},
"idc_import": {
"activated": "True",
"activated": true,
"content_name": ["2-Contenus/Logiciel-libre/app.csv","21-BSFCAMPUS/KB_Liste_contenus_bsf_campus.csv"]
},
"zim_install": {
"activated": "True",
"activated": true,
"name": "ubuntudoc.fr tedxlausanne2014.fr tedxlausanne2013.fr tedxlausanne2012.fr tedxgeneva2014.fr cest-pas-sorcier.fr gutenberg.fr vikidia.fr wikisource.en wikisource.fr wikipedia.fr wikipedia.wo wikipedia.en "
}
},
Expand Down Expand Up @@ -143,14 +143,14 @@ Ansible will be executed in Pull mode and this file will be called by Network-Ma

Example of `ansiblePullUpdate`: `/usr/local/bin/ansible-pull -s 120 -d /var/lib/ansible/local -C oneUpdateFile -i hosts -U https://github.com/ideascube/ansiblecube.git main.yml --tags "update"`

From now on, everything depend from the file `roles/set_custom_fact/files/device_list.fact`. If you left some application with `"activated": "True",` those ones will be updated each time the device will be connected to Internet.
From now on, everything depend from the file `roles/set_custom_fact/files/device_list.fact`. If you left some application with `"activated": true,` those ones will be updated each time the device will be connected to Internet.

## Available TAGS

- idc_import: Call the ideascube import medias command with the right file given with
```
"idc_import": {
"activated": "True",
"activated": true,
"content_name": ["2-Contenus/Logiciel-libre/app.csv","21-BSFCAMPUS/KB_Liste_contenus_bsf_campus.csv"]
},
```
Expand Down
12 changes: 6 additions & 6 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,36 @@

- role: zim_install
when: ansible_local.device_list[generic_project_name].zim_install is defined
and ansible_local.device_list[generic_project_name].zim_install.activated|bool == True
and ansible_local.device_list[generic_project_name].zim_install.activated
tags: ['custom', 'update','zim_install']

- role: mook
mook_name: bsfcampus
mook_version: "{{ ansible_local.device_list[generic_project_name].bsfcampus.version }}"
when: ansible_local.device_list[generic_project_name].bsfcampus is defined
and ansible_local.device_list[generic_project_name].bsfcampus.activated|bool == True
and ansible_local.device_list[generic_project_name].bsfcampus.activated

- role: mook
mook_name: koombookedu
mook_version: "{{ ansible_local.device_list[generic_project_name].koombookedu.version }}"
when: ansible_local.device_list[generic_project_name].koombookedu is defined
and ansible_local.device_list[generic_project_name].koombookedu.activated|bool == True
and ansible_local.device_list[generic_project_name].koombookedu.activated

- role: appinventor
when: ansible_local.device_list[generic_project_name].appinventor is defined
and ansible_local.device_list[generic_project_name].appinventor.activated|bool == True
and ansible_local.device_list[generic_project_name].appinventor.activated
tags: ['custom']

- role: kalite
when: ansible_local.device_list[generic_project_name].kalite is defined
and ansible_local.device_list[generic_project_name].kalite.activated|bool == True
and ansible_local.device_list[generic_project_name].kalite.activated

- role: logs
when: ansible_local.installed_software.management.managed_by_bsf|bool == True

- role: idc_import
when: ansible_local.device_list[generic_project_name].idc_import is defined
and ansible_local.device_list[generic_project_name].idc_import.activated|bool == True
and ansible_local.device_list[generic_project_name].idc_import.activated
and ansible_default_ipv4.gateway == "{{ gateway }}"
tags: ['update','idc_import']

Expand Down
Loading