Install "apg" package where needed

This commit is contained in:
Jérémy Lecour 2017-01-12 17:36:59 +01:00 committed by Jérémy Lecour
parent 49f5f6f08a
commit d91b317a50
3 changed files with 17 additions and 2 deletions

View file

@ -1,4 +1,4 @@
- name: ensure packages are installed
- name: LDAP packages are installed
apt:
name: '{{ item }}'
state: present
@ -6,3 +6,8 @@
- slapd
- ldap-utils
- ldapvi
- name: apg package is installed
apt:
name: apg
state: present

View file

@ -10,7 +10,7 @@
mysql_packages: "{{ mysql_packages_mariadb }}"
when: mysql_variant == "mariadb"
- name: Install packages
- name: Install MySQL packages
apt:
name: '{{ item }}'
update_cache: yes
@ -24,3 +24,8 @@
service:
name: mysql
state: started
- name: apg package is installed
apt:
name: apg
state: present

View file

@ -1,4 +1,9 @@
---
- name: apg package is installed
apt:
name: apg
state: present
- name: Generate random password for nrpe user
command: apg -n1 -m 12 -M SCNL
register: postgresql_nrpe_password