ansible/roles/base_config/tasks/main.yml
Jean-Marie Mineau d6a3d8a71e upgrade hosts
2021-01-27 13:35:28 +01:00

36 lines
627 B
YAML

---
- name: Install and update basic tools
apt:
update_cache: yes
name:
- sudo
- vim
- htop
- ntp # network time sync
- bash-completion
- less
- screen
- git
- curl
- python3-pip # Because I like python
- tree
- unzip
- tcpdump
state: latest
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Upgrade all package
apt:
update_cache: yes
upgrade: dist
- name: Customize motd
copy:
src: "update-motd.d/{{ item }}"
dest: "/etc/update-motd.d/{{ item }}"
mode: 0755
loop:
- 01-logo