ansible/roles/base/tasks/main.yml

39 lines
675 B
YAML
Raw Normal View History

2020-10-12 09:59:51 +02:00
---
- name: Install and update basic tools
apt:
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
2021-10-07 21:37:16 +02:00
- acl
2020-10-12 09:59:51 +02:00
state: latest
2021-04-15 16:03:35 +02:00
update_cache: true
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
2022-07-21 17:43:24 +02:00
- name: Check for cloud init
stat:
path: /etc/cloud
register: cloudinit_folder
- include_role:
name: cloudinit
when: cloudinit_folder.stat.exists