2021-04-10 22:11:19 +02:00
|
|
|
---
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|
|
|
|
|
|
|
|
# installation packages:
|
|
|
|
|
2021-11-09 21:56:09 +01:00
|
|
|
- name: need epel-release
|
|
|
|
yum:
|
|
|
|
lock_timeout: 30
|
|
|
|
name: [epel-release]
|
|
|
|
|
2021-04-10 22:11:19 +02:00
|
|
|
- name: install packages
|
|
|
|
yum:
|
|
|
|
lock_timeout: 30
|
|
|
|
name: '{{lookup("flattened", items)}}'
|
|
|
|
vars:
|
|
|
|
items:
|
|
|
|
- '{{ [] if is_virt_guest else ["chrony", "smartmontools"] }}'
|
2021-06-21 22:59:42 +02:00
|
|
|
#- yum-cron
|
|
|
|
- glibc-langpack-de
|
|
|
|
- glibc-langpack-en
|
2021-04-10 22:11:19 +02:00
|
|
|
- curl
|
|
|
|
- file
|
|
|
|
- etckeeper
|
|
|
|
- git
|
|
|
|
- '{{ [] if is_container else ["haveged", "lvm2"] }}'
|
|
|
|
- htop
|
|
|
|
#- inetutils-ping
|
2021-06-21 22:59:42 +02:00
|
|
|
- iproute
|
2021-04-10 22:11:19 +02:00
|
|
|
#- knot-dnsutils
|
|
|
|
#- ldap-utils
|
|
|
|
- lsof
|
2021-06-23 13:41:50 +02:00
|
|
|
- man
|
|
|
|
- man-pages
|
|
|
|
- man-db
|
|
|
|
- gnupg2
|
2021-04-10 22:11:19 +02:00
|
|
|
- net-tools
|
|
|
|
#- '{{ ["nullmailer"] if has_nullmailer else [] }}'
|
|
|
|
#- progress
|
2024-10-23 17:06:24 +02:00
|
|
|
- python3
|
2021-04-10 22:11:19 +02:00
|
|
|
- pv
|
|
|
|
- '{{ ["rng-tools"] if has_hwrng else [] }}'
|
|
|
|
- rsync
|
|
|
|
- socat
|
|
|
|
- sudo
|
|
|
|
- rsyslog
|
|
|
|
- systemd
|
|
|
|
- tmux
|
|
|
|
- tzdata
|
|
|
|
- vim
|
|
|
|
- '{{ [] if is_container else ["xfsdump", "xfsprogs"] }}'
|
|
|
|
- zsh
|
|
|
|
|
|
|
|
- include_tasks: sshd_config.yml
|
|
|
|
- include_tasks: systemd.yml
|
|
|
|
- include_tasks: ohmyzsh.yml
|
2021-06-23 16:53:57 +02:00
|
|
|
- include_tasks: users.yml
|
2021-04-10 22:11:19 +02:00
|
|
|
|
|
|
|
- name: setup mailname
|
|
|
|
copy:
|
|
|
|
dest: /etc/mailname
|
|
|
|
content: |
|
|
|
|
{{sys_mailname | default(ansible_fqdn) | mandatory}}
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: enable ssh
|
|
|
|
systemd:
|
|
|
|
name: sshd
|
|
|
|
enabled: yes
|
|
|
|
state: started
|