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:
parent
e44c852311
commit
e293378922
5 changed files with 26 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
4
tasks/os_info.yml
Normal 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"
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue