Install gettext for translation jobs

Add install of gettext to prepare-zanata-client role so that projects
don't need to add it to their bindep.txt file.
gettext is essential for the role to work.

For consistency capitalize all names of tasks in the file.

Change-Id: Ic36534c4edfbb086f5bcc66ab657107552ba92de
This commit is contained in:
Andreas Jaeger 2019-07-22 10:52:11 +02:00
parent bbdeacfe87
commit 16c5684be3
1 changed files with 10 additions and 8 deletions

View File

@ -5,13 +5,15 @@
- name: Find java package name - name: Find java package name
include_vars: "{{ ansible_os_family }}.yaml" include_vars: "{{ ansible_os_family }}.yaml"
- name: install necessary packages - name: Install necessary packages
package: package:
name: "{{ zanata_jre_package }}" name:
- "{{ zanata_jre_package }}"
- gettext
state: present state: present
become: yes become: yes
- name: ensure zanata install dir - name: Ensure zanata install dir
file: file:
path: /opt/zanata path: /opt/zanata
owner: "{{ ansible_ssh_user }}" owner: "{{ ansible_ssh_user }}"
@ -57,12 +59,12 @@
remote_src: yes remote_src: yes
when: not cached_client.stat.exists when: not cached_client.stat.exists
- name: ensure zanata-cli perms - name: Ensure zanata-cli perms
file: file:
path: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli" path: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli"
mode: 0755 mode: 0755
- name: link zanata-cli - name: Link zanata-cli
file: file:
path: /usr/local/bin/zanata-cli path: /usr/local/bin/zanata-cli
src: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli" src: "/opt/zanata/zanata-cli-{{ zanata_client_version }}/bin/zanata-cli"
@ -79,18 +81,18 @@
become: true become: true
# Use sudo to ensure root ownership # Use sudo to ensure root ownership
- name: set permissions for cacert - name: Set permissions for cacert
file: file:
path: /etc/ssl/certs/java/cacerts path: /etc/ssl/certs/java/cacerts
mode: 0644 mode: 0644
become: true become: true
- name: ensure zanata config dir - name: Ensure zanata config dir
file: file:
path: ~/.config path: ~/.config
state: directory state: directory
- name: write out zanata config - name: Write out zanata config
template: template:
src: zanata.ini src: zanata.ini
dest: ~/.config/zanata.ini dest: ~/.config/zanata.ini