forked from spantaleev/matrix-docker-ansible-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cebadf4
commit 37f3a2d
Showing
7 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/inventory/* | ||
!/inventory/.gitkeep | ||
!/inventory/host_vars/.gitkeep | ||
/roles/*/files/scratchpad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
|
||
# | ||
# Tasks related to setting up riot-web themes | ||
# | ||
|
||
- block: | ||
- name: Ensure riot-web themes repository is pulled | ||
git: | ||
repo: "{{ matrix_riot_web_themes_repository_url }}" | ||
dest: "{{ role_path }}/files/scratchpad/riot-web-themes" | ||
|
||
- name: Find all riot-web theme files | ||
find: | ||
paths: "{{ role_path }}/files/scratchpad/riot-web-themes" | ||
patterns: "*.json" | ||
recurse: true | ||
register: matrix_riot_web_theme_file_list | ||
|
||
- name: Read riot-web theme | ||
slurp: | ||
path: "{{ item.path }}" | ||
register: "matrix_riot_web_theme_file_contents" | ||
with_items: "{{ matrix_riot_web_theme_file_list.files }}" | ||
|
||
- name: Load riot-web theme | ||
set_fact: | ||
matrix_riot_web_settingDefaults_custom_themes: "{{ matrix_riot_web_settingDefaults_custom_themes + [item['content'] | b64decode | from_json] }}" | ||
with_items: "{{ matrix_riot_web_theme_file_contents.results }}" | ||
|
||
run_once: true | ||
delegate_to: 127.0.0.1 | ||
become: false | ||
when: matrix_riot_web_themes_enabled|bool | ||
|
||
|
||
# # | ||
# # Tasks related to getting rid of riot-web themes (if it was previously enabled) | ||
# # | ||
|
||
- name: Ensure riot-web themes repository is removed | ||
file: | ||
path: "{{ role_path }}/files/scratchpad/riot-web-themes" | ||
state: absent | ||
run_once: true | ||
delegate_to: 127.0.0.1 | ||
become: false | ||
when: "not matrix_riot_web_themes_enabled|bool" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters