Browse Source

Merge "ensure-sphinx: do not attempt a gettext install if exists"

changes/49/612149/1
Zuul 7 months ago
parent
commit
5b51d9dfe5
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      roles/ensure-sphinx/tasks/main.yaml

+ 6
- 0
roles/ensure-sphinx/tasks/main.yaml View File

@@ -1,9 +1,15 @@
1
+- name: Check for gettext installed
2
+  command: bash -c "type gettext"
3
+  ignore_errors: yes
4
+  register: gettext_exists
5
+
1 6
 # TODO(mordred) Make this a list of known binary depends that sphinx needs
2 7
 - name: Install gettext package
3 8
   package:
4 9
     name: gettext
5 10
     state: present
6 11
   become: yes
12
+  when: gettext_exists.rc != 0
7 13
 
8 14
 - name: Find Constraints File
9 15
   include_role:

Loading…
Cancel
Save