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

update package list

This commit is contained in:
L3D 2018-11-12 21:01:35 +01:00
parent fd9775908d
commit 867df4ecc4
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -1,55 +1,52 @@
--- ---
---
- name: Install some common base packages - name: Install common base packages
apt: apt:
state: 'latest' package:
name: "{{ packages }}"
update_cache: yes
cache_valid_time: 86400
vars:
packages:
- tmux - tmux
- aptitude - sudo
- molly-guard
- htop - htop
- iftop - iftop
- iotop - iotop
- molly-guard - sysstat
- ethtool - ethtool
- ethstatus - ethstatus
- nano - nethogs
- nload
- ncdu - ncdu
- haveged
- nmap
- vim
- fail2ban
- python3
- python3-jsonschema
- python3-yaml
- python3-requests
- python3-prettytable
- python3-jinja2
- python3-natsort
- jq
- git
- perl
- wget
- mtr-tiny - mtr-tiny
- knot-dnsutils
- atop
- vim
- nmap
- python3
- wget
- git
- bash-completion - bash-completion
- unzip - unzip
- python3-pip - python3-pip
#- rng-tools
state: latest
update_cache: yes
cache_valid_time: 43200
- name: Install some common Debian specific packages - name: Install some common Debian specific packages
apt: apt:
name: '{{ packages }}' package:
state: latest
update_cache: yes
cache_valid_time: 86400
vars:
packages:
- debian-goodies - debian-goodies
- apt-dater-host - apt-dater-host
state: latest
update_cache: yes
cache_valid_time: 43200
when: ansible_distribution == 'Debian' when: ansible_distribution == 'Debian'
- name: Update all packages to the latest version
- name: Remove rpcbind, nfs-common
apt: apt:
upgrade: safe pkg:
- rpcbind
- nfs-common
state: absent