summaryrefslogtreecommitdiff
path: root/roles/contexts/fretlink/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/contexts/fretlink/tasks')
-rw-r--r--roles/contexts/fretlink/tasks/main.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml
index ce69e02..99d39b3 100644
--- a/roles/contexts/fretlink/tasks/main.yml
+++ b/roles/contexts/fretlink/tasks/main.yml
@@ -111,3 +111,30 @@
111 dest: "$XDG_DATA_HOME/bash_completion/_{{ item }}" 111 dest: "$XDG_DATA_HOME/bash_completion/_{{ item }}"
112 loop: 112 loop:
113 - fl_tmux_dev 113 - fl_tmux_dev
114- name: docker images
115 block:
116 - name: check missing docker images
117 register: docker_missing_images
118 shell: '[ -n "$(docker image ls -q {{ item.0 }}:{{ item.1 }})" ] || echo "missing"'
119 loop: "{{ docker_images }}"
120 check_mode: no
121 changed_when: docker_missing_images.stdout != ""
122 - name: Ask for Docker images
123 when: docker_missing_images.changed
124 pause:
125 prompt: "install Fretlink Docker images ? [y/N]"
126 register: docker_install_images
127 check_mode: no
128 - name: install custom docker images
129 when: item.2 is not none and docker_missing_images.changed and docker_install_images.user_input.startswith("y")
130 docker_image:
131 path: "./roles/contexts/fretlink/files/docker/{{ item.2 }}"
132 tag: "{{ item.1 }}"
133 name: "{{ item.0 }}"
134 loop: "{{ docker_images }}"
135 - name: install repository docker images
136 when: item.2 is none and docker_missing_images.changed and docker_install_images.user_input.startswith("y")
137 docker_image:
138 tag: "{{ item.1 }}"
139 name: "{{ item.0 }}"
140 loop: "{{ docker_images }}"