X Tutup
Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit e6297e8

Browse files
committed
Settings: YYQ is now only installed when needed.
1 parent 086a3dd commit e6297e8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

roles/settings/tasks/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
version: 0.15.35
1515
executable: pip3
1616

17+
- name: "Check to see if yyq is installed"
18+
stat:
19+
path: "/usr/local/bin/yyq"
20+
register: yyq_binary
21+
22+
- name: Install yyq
23+
import_role:
24+
name: yyq
25+
when: (not yyq_binary.stat.exists)
26+
1727
- name: "Get 'cloudbox.yml' info."
1828
stat:
1929
path: "{{ playbook_dir }}/cloudbox.yml"

roles/settings/tasks/settings_migrator.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
- name: Migration 1
3333
block:
3434

35-
- name: Install yyq
36-
import_role:
37-
name: yyq
38-
3935
- name: "Set variables"
4036
set_fact:
4137
vault_service_defined: "{{ true if not(

0 commit comments

Comments
 (0)
X Tutup