1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00

merge with master

This commit is contained in:
Lilian Roller 2019-07-16 13:42:20 +02:00
commit a6283112e7
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
7 changed files with 66 additions and 16 deletions

2
.ansible-lint Normal file
View file

@ -0,0 +1,2 @@
skip_list:
- '403'

View file

@ -29,5 +29,4 @@ Packages are defined as variable in the ``vars`` Folder.
------------ ------------
- Some CI-Testing would be nice. Eg with docker and some common linux distributions. - Some CI-Testing would be nice. Eg with docker and some common linux distributions.
- Meta File for Ansible Galaxy is missing - Meta File for Ansible Galaxy is missing
- Role should be moved to [chaos-bodensee](https://github.com/chaos-bodensee/)
- Lint checks? - Lint checks?

View file

@ -1,6 +1,18 @@
--- ---
# if you are interested in adding extra packages... do it here!
packages_extra: [] packages_extra: []
# - foo # - foo
# - bar # - bar
upgrade_packages_to_latest_version: false
# 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
# version management
submodules_versioncheck: true submodules_versioncheck: true

7
tasks/editor.yml Normal file
View file

@ -0,0 +1,7 @@
---
- name: vim is our editor
become: true
alternatives:
name: editor
path: /usr/bin/vim.basic
when: editor_is_vim | bool

View file

@ -1,6 +1,12 @@
--- ---
- include_tasks: versioncheck.yml - include_tasks: versioncheck.yml
when: submodules_versioncheck|bool when: submodules_versioncheck | bool
- include_tasks: editor.yml
when: editor_is_vim | bool
- include_tasks: sources.yml
when: ansible_distribution == 'Debian'
- name: Install common base packages [Debian] - name: Install common base packages [Debian]
become: yes become: yes
@ -26,18 +32,6 @@
when: when:
ansible_distribution == 'Fedora' ansible_distribution == 'Fedora'
- name: Install some common Debian specific packages
become: yes
apt:
package:
- debian-goodies
- apt-dater-host
- apt-transport-https
state: present
update_cache: yes
cache_valid_time: 43200
when: ansible_distribution == 'Debian'
- name: install packages for everyone except centos/rhel - name: install packages for everyone except centos/rhel
become: true become: true
package: package:

32
tasks/sources.yml Normal file
View file

@ -0,0 +1,32 @@
---
- name: Install some common Debian specific packages
become: yes
apt:
package:
- debian-goodies
- apt-dater-host
- apt-transport-https
state: present
update_cache: yes
cache_valid_time: 43200
when: ansible_distribution == 'Debian'
- name: add eth zurich apt
become: true
apt_repository:
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
state: present
when:
- add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_distribution_release == "wheezy" or ansible_distribution_release == "buster"
- name: iremove eth zurich apt
become: true
apt_repository:
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
state: absent
when:
- not add_ethz | bool
- ansible_distribution == 'Debian'

View file

@ -2,6 +2,7 @@
base_packages: base_packages:
- tmux - tmux
- sudo - sudo
- fail2ban
- sysstat - sysstat
- ethtool - ethtool
- vim - vim
@ -21,6 +22,9 @@ debian_packages:
- python-apt - python-apt
- python3-apt - python3-apt
- fio - fio
- debian-goodies
- apt-dater-host
- apt-transport-https
packages_for_all_except_rhel: packages_for_all_except_rhel:
- ranger - ranger
@ -43,5 +47,5 @@ fedora_packages:
- python3-pip - python3-pip
- python3 - python3
playbook_version_number: 8953 # should be over ninethousand playbook_version_number: 8958 # 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'