2020-10-29 01:42:23 +01:00
|
|
|
---
|
|
|
|
- name: install keychain to support ssh agent
|
2021-01-18 10:47:52 +01:00
|
|
|
become: true
|
2020-10-29 01:42:23 +01:00
|
|
|
package:
|
|
|
|
name: keychain
|
2020-10-29 01:45:23 +01:00
|
|
|
state: "{{ base__package_state }}"
|
2020-10-29 01:42:23 +01:00
|
|
|
when:
|
2021-01-18 10:47:52 +01:00
|
|
|
- ansible_os_family != 'RedHat'
|
2020-10-29 01:42:23 +01:00
|
|
|
|
|
|
|
- name: install keychain on centos
|
2021-01-18 10:47:52 +01:00
|
|
|
become: true
|
2020-10-29 01:42:23 +01:00
|
|
|
yum:
|
|
|
|
name:
|
|
|
|
- "{{ _base__keychain_rpm }}"
|
|
|
|
- libselinux-python
|
2020-10-29 01:45:23 +01:00
|
|
|
state: "{{ base__package_state }}"
|
2020-10-29 01:42:23 +01:00
|
|
|
when:
|
2021-01-18 10:47:52 +01:00
|
|
|
- ansible_os_family == 'RedHat' and ansible_distribution_version | float <= 7
|