1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00

Optimize for centos

This commit is contained in:
Lilian Roller 2019-07-16 16:53:03 +02:00
parent e44c852311
commit e293378922
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
5 changed files with 26 additions and 2 deletions

View file

@ -13,6 +13,8 @@ add_ethz: true
# we use vim!
editor_is_vim: true
# print os variables
print_os_vars: false
# version management
submodules_versioncheck: true

View file

@ -4,4 +4,19 @@
alternatives:
name: editor
path: /usr/bin/vim.basic
when: editor_is_vim | bool
when:
- editor_is_vim | bool
- ansible_distribution != 'CentOS'
- ansible_distribution != 'RedHat'
ignore_errors: yes
- name: vim is our editor
become: true
alternatives:
name: editor
path: /usr/bin/vim
when:
- editor_is_vim | bool
- ansible_distribution == 'CentOS'
- ansible_distribution == 'RedHat'
ignore_errors: yes

View file

@ -1,4 +1,7 @@
---
- include_tasks: os_info.yml
when: print_os_vars | bool
- include_tasks: versioncheck.yml
when: submodules_versioncheck | bool

4
tasks/os_info.yml Normal file
View file

@ -0,0 +1,4 @@
---
- name: Print OS Infos
debug:
msg: " ansible_os_family = '{{ ansible_os_family }}'\n ansible_distribution = '{{ ansible_distribution }}'\n\n\n ansible_hostname = '{{ ansible_hostname }}'\n ansible_fqdn = '{{ ansible_fqdn }}'\n"

View file

@ -47,5 +47,5 @@ fedora_packages:
- python3-pip
- python3
playbook_version_number: 8959 # should be over ninethousand
playbook_version_number: 8961 # should be over ninethousand
playbook_version_path: '/etc/ansible-version/base-packages_ffbsee_or_chaos-bodensee_github.version'