ansible/roles/base_config/tasks/main.yml

38 lines
637 B
YAML
Raw Normal View History

2020-10-12 09:59:51 +02:00
---
- name: Install and update basic tools
apt:
2021-01-27 13:35:28 +01:00
update_cache: yes
2020-10-12 09:59:51 +02:00
name:
- sudo
- vim
- htop
2021-01-24 19:48:55 +01:00
- ntp # network time sync
2020-10-12 09:59:51 +02:00
- bash-completion
- less
- screen
- git
2021-01-24 18:46:31 +01:00
- curl
2020-10-13 09:43:14 +02:00
- python3-pip # Because I like python
2021-01-24 19:48:55 +01:00
- tree
2021-01-25 23:11:21 +01:00
- unzip
2021-01-26 18:49:46 +01:00
- tcpdump
2021-02-07 21:40:36 +01:00
- net-tools
2020-10-12 09:59:51 +02:00
state: latest
register: apt_result
retries: 3
until: apt_result is succeeded
2020-10-12 10:59:53 +02:00
2021-03-24 22:16:06 +01:00
- name: Upgrade all
2021-01-27 13:35:28 +01:00
apt:
update_cache: yes
upgrade: dist
2020-10-12 10:59:53 +02:00
- name: Customize motd
copy:
src: "update-motd.d/{{ item }}"
dest: "/etc/update-motd.d/{{ item }}"
mode: 0755
loop:
- 01-logo