From abb765a5452a1b515012236551c18d4b9897dcdf Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Wed, 6 Mar 2019 11:15:16 +0100 Subject: [PATCH] bring back centos support --- tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 093c54d..067b970 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,11 +8,19 @@ state: latest when: ansible_distribution == "Fedora" -- name: install ssh agent +- name: install keychain to support ssh agent become: yes package: name: keychain state: latest + when: ansible_distribution != "centos" + +- name: install keychain on centos + become: yes + yum: + name: https://centos.pkgs.org/7/psychotic-ninja-x86_64/keychain-2.7.1-1.el7.psychotic.noarch.rpm.html + state: present + when: ansible_distribution == "centos" - name: Create a global bashrc configuration become: yes