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

This commit is contained in:
Zuul 2018-10-19 17:11:53 +00:00 committed by Gerrit Code Review
commit 5b51d9dfe5
1 changed files with 6 additions and 0 deletions

View File

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