From d91b317a5001d65af2e84b195b494f1129b95a1a Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 12 Jan 2017 17:36:59 +0100 Subject: [PATCH] Install "apg" package where needed --- ldap/tasks/main.yml | 7 ++++++- mysql/tasks/packages.yml | 7 ++++++- postgresql/tasks/nrpe.yml | 5 +++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ldap/tasks/main.yml b/ldap/tasks/main.yml index ebd38f47..c28c01fe 100644 --- a/ldap/tasks/main.yml +++ b/ldap/tasks/main.yml @@ -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 diff --git a/mysql/tasks/packages.yml b/mysql/tasks/packages.yml index 62a2537a..934cf6fd 100644 --- a/mysql/tasks/packages.yml +++ b/mysql/tasks/packages.yml @@ -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 diff --git a/postgresql/tasks/nrpe.yml b/postgresql/tasks/nrpe.yml index 01595b08..9586def3 100644 --- a/postgresql/tasks/nrpe.yml +++ b/postgresql/tasks/nrpe.yml @@ -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