ansible/roles/base/tasks/main.yml
2022-07-21 17:43:24 +02:00

38 lines
675 B
YAML

---
- name: Install and update basic tools
apt:
name:
- sudo
- vim
- htop
- ntp # network time sync
- bash-completion
- less
- screen
- git
- curl
- python3-pip # Because I like python
- tree
- unzip
- tcpdump
- net-tools
- acl
state: latest
update_cache: true
- name: Customize motd
copy:
src: "update-motd.d/{{ item }}"
dest: "/etc/update-motd.d/{{ item }}"
mode: 0755
loop:
- 01-logo
- name: Check for cloud init
stat:
path: /etc/cloud
register: cloudinit_folder
- include_role:
name: cloudinit
when: cloudinit_folder.stat.exists