2020-10-29 01:42:23 +01:00
|
|
|
---
|
2021-03-12 22:18:54 +01:00
|
|
|
- name: Update apt cache
|
2021-04-13 16:54:12 +02:00
|
|
|
become: true
|
2021-03-12 22:18:54 +01:00
|
|
|
ansible.builtin.apt:
|
|
|
|
cache_valid_time: 3600
|
|
|
|
update_cache: true
|
|
|
|
when:
|
|
|
|
- ansible_pkg_mgr == "apt"
|
|
|
|
|
2023-06-14 02:25:15 +02:00
|
|
|
- name: Install keychain to support ssh agent
|
2021-01-18 10:47:52 +01:00
|
|
|
become: true
|
2021-03-12 22:18:54 +01:00
|
|
|
ansible.builtin.package:
|
2020-10-29 01:42:23 +01:00
|
|
|
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
|
|
|
|
2023-06-14 02:25:15 +02:00
|
|
|
- name: Install keychain on centos
|
2021-01-18 10:47:52 +01:00
|
|
|
become: true
|
2021-03-12 22:18:54 +01:00
|
|
|
ansible.builtin.yum:
|
2020-10-29 01:42:23 +01:00
|
|
|
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
|