ansible-role-common/tasks/pkg_Debian.yml

41 lines
724 B
YAML

---
- name: install common packages (debian)
apt:
name:
- ca-certificates
- apt-transport-https
- curl
# - docker.io
- haveged
- htop
- gpg
- iptables
- iptables-persistent
- msmtp-mta
- nginx
- openssh-server
- python3-apt
- python3-docker
- python3-openssl
- rng-tools5
- watchdog
- wget
state: present
update_cache: yes
- name: ensure netfilter-persistent is enabled
service:
name: netfilter-persistent
enabled: yes
state: started
tags:
- pkg
- name: configure msmtp
template:
src: msmtprc.j2
dest: /etc/msmtprc
when: "'scouts' not in group_names"
tags:
- pkg