Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.0 KiB

---
- name: Install common utilities
yum:
name: "{{ system_utils }} + {{ system_utils_el }}"
when: ansible_os_family == 'RedHat'
- name: Strip unsupported packages
set_fact: system_utils={{ system_utils | difference(['zstd']) }}
when: ansible_distribution == 'Debian' and ansible_distribution_major_version is version('9', '<')
- name: Install common utilities
apt:
name: "{{ system_utils }} + {{ system_utils_deb }}"
update_cache: True
when: ansible_os_family == 'Debian'
- name: Install extra softwares
yum:
name: "{{ system_extra_pkgs }}"
when: ansible_os_family == 'RedHat'
- name: Install extra softwares
apt:
name: "{{ system_extra_pkgs }}"
when: ansible_os_family == 'Debian'
# Screendump is not used, and prevent using tab to use screen quickly, so remove it
- name: Check if screendump is present
stat: path=/usr/bin/screendump
register: system_screendump
- name: Rename screendump
command: mv -f /usr/bin/screendump /usr/bin/_screendump
when: system_screendump.stat.exists
...