mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
Add option: contrib pkgs
This commit is contained in:
parent
573af28fdf
commit
e36ed01727
3 changed files with 32 additions and 1 deletions
|
@ -19,5 +19,8 @@ print_os_vars: false
|
||||||
# do we want non-free firmware from eth zuerich?
|
# do we want non-free firmware from eth zuerich?
|
||||||
base_pkg_non_free_firmware: false
|
base_pkg_non_free_firmware: false
|
||||||
|
|
||||||
|
# do we want contrib from eth zuerich?
|
||||||
|
base_pkg_contrib: false
|
||||||
|
|
||||||
# version management
|
# version management
|
||||||
submodules_versioncheck: true
|
submodules_versioncheck: true
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- not base_pkg_non_free_firmware | bool
|
- not base_pkg_non_free_firmware | bool
|
||||||
|
- not base_pkg_contrib | bool
|
||||||
- add_ethz | bool
|
- add_ethz | bool
|
||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
||||||
|
@ -31,6 +32,7 @@
|
||||||
state: absent
|
state: absent
|
||||||
when:
|
when:
|
||||||
- not base_pkg_non_free_firmware | bool
|
- not base_pkg_non_free_firmware | bool
|
||||||
|
- not base_pkg_contrib | bool
|
||||||
- not add_ethz | bool
|
- not add_ethz | bool
|
||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
||||||
|
@ -42,6 +44,7 @@
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- base_pkg_non_free_firmware | bool
|
- base_pkg_non_free_firmware | bool
|
||||||
|
- not base_pkg_contrib | bool
|
||||||
- add_ethz | bool
|
- add_ethz | bool
|
||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
||||||
|
@ -53,6 +56,31 @@
|
||||||
state: absent
|
state: absent
|
||||||
when:
|
when:
|
||||||
- base_pkg_non_free_firmware | bool
|
- 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 + contrib + non-free
|
||||||
|
become: true
|
||||||
|
apt_repository:
|
||||||
|
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- base_pkg_non_free_firmware | bool
|
||||||
|
- base_pkg_contrib | bool
|
||||||
|
- add_ethz | bool
|
||||||
|
- ansible_distribution == 'Debian'
|
||||||
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
||||||
|
|
||||||
|
- name: remove eth zurich apt + contrib + non-free
|
||||||
|
become: true
|
||||||
|
apt_repository:
|
||||||
|
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free
|
||||||
|
state: absent
|
||||||
|
when:
|
||||||
|
- base_pkg_non_free_firmware | bool
|
||||||
|
- base_pkg_contrib | bool
|
||||||
- not add_ethz | bool
|
- not add_ethz | bool
|
||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
|
||||||
|
|
|
@ -50,5 +50,5 @@ fedora_packages:
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3
|
- python3
|
||||||
|
|
||||||
playbook_version_number: 8970 # should be over ninethousand
|
playbook_version_number: 8971 # should be over ninethousand
|
||||||
playbook_version_path: '/etc/ansible-version/base-packages_ffbsee_or_chaos-bodensee_github.version'
|
playbook_version_path: '/etc/ansible-version/base-packages_ffbsee_or_chaos-bodensee_github.version'
|
||||||
|
|
Loading…
Reference in a new issue