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

prepare role change...

This commit is contained in:
L3D 2020-08-12 17:20:30 +02:00
parent 78674496c7
commit b8eebbb474
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 16 additions and 18 deletions

View file

@ -1,14 +1,23 @@
---
# if you are interested in adding extra packages... do it here!
packages_extra: []
# install these additional packages
base__extra_packages: []
# - foo
# - bar
base__add_ethz: "{{ add_ethz }}"
# LEGACY VARS
# ++ WILL BE REMOVED SOON ++
# add eth zurich apt source
add_ethz: true
# do we want the latest package version or just upgrade manually?
upgrade_packages_to_latest_version: true
# add eth zurich apt source
add_ethz: true
# we use vim!
editor_is_vim: true

View file

@ -6,7 +6,9 @@
when: submodules_versioncheck | bool
- include_tasks: sources.yml
when: ansible_distribution == 'Debian'
when:
- ansible_os_family == 'Debian'
- base__add_ethz | bool
- name: Install common base packages [Debian]
become: yes

View file

@ -10,7 +10,6 @@
update_cache: yes
cache_valid_time: 43200
when:
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt
@ -25,18 +24,6 @@
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: remove eth zurich apt
become: true
apt_repository:
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
state: absent
when:
- not base_pkg_non_free_firmware | bool
- not base_pkg_contrib | bool
- not add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt
become: true
apt_repository: