1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00
ansible_role_base/tasks/keychain.yml

27 lines
622 B
YAML
Raw Normal View History

---
- name: Update apt cache
2021-04-13 16:54:12 +02:00
become: true
ansible.builtin.apt:
cache_valid_time: 3600
update_cache: true
when:
- ansible_pkg_mgr == "apt"
- name: Install keychain to support ssh agent
become: true
ansible.builtin.package:
name: keychain
2020-10-29 01:45:23 +01:00
state: "{{ base__package_state }}"
when:
- ansible_os_family != 'RedHat'
- name: Install keychain on centos
become: true
ansible.builtin.yum:
name:
- "{{ _base__keychain_rpm }}"
- libselinux-python
2020-10-29 01:45:23 +01:00
state: "{{ base__package_state }}"
when:
- ansible_os_family == 'RedHat' and ansible_distribution_version | float <= 7