2017-03-26 20:02:33 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install misc software
|
2017-06-30 11:59:14 +02:00
|
|
|
apt: name={{ item }}
|
2017-03-26 20:02:33 +02:00
|
|
|
with_items:
|
|
|
|
- dnsutils
|
|
|
|
- htop
|
2017-06-30 11:59:14 +02:00
|
|
|
- less
|
2018-01-14 19:05:25 +01:00
|
|
|
- net-tools
|
2017-03-26 20:02:33 +02:00
|
|
|
- openssl
|
2018-01-14 19:05:25 +01:00
|
|
|
- psmisc
|
2017-03-26 20:02:33 +02:00
|
|
|
- pydf
|
|
|
|
- rsync
|
|
|
|
- sudo
|
|
|
|
- vim-nox
|
|
|
|
- zsh
|
|
|
|
|
2018-07-17 13:15:51 +02:00
|
|
|
- name: Install qemu-agent on KVM VMs
|
|
|
|
apt: name=qemu-guest-agent
|
|
|
|
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
|
|
|
|
|
2017-03-26 20:02:33 +02:00
|
|
|
- name: Configure misc software
|
|
|
|
copy: src={{ item.src }} dest={{ item.dest }}
|
|
|
|
with_items:
|
|
|
|
- { src: '.zshrc', dest: '/root/.zshrc' }
|
|
|
|
- { src: '.zshrc.local', dest: '/root/.zshrc.local' }
|
|
|
|
- { src: 'motd', dest: '/etc/motd' }
|
|
|
|
- { src: 'prompt_gentoo_setup', dest: '/usr/share/zsh/functions/Prompts/prompt_gentoo_setup' }
|
2017-09-19 09:26:08 +02:00
|
|
|
- { src: 'vimrc.local', dest: '/etc/vim/vimrc.local' }
|
2017-03-26 20:02:33 +02:00
|
|
|
|
|
|
|
- name: Set shell for root user
|
|
|
|
user: name=root shell=/bin/zsh
|
2018-07-17 13:15:51 +02:00
|
|
|
|
|
|
|
- name: Disable hibernation/resume
|
|
|
|
copy: src=resume dest=/etc/initramfs-tools/conf.d/resume
|
|
|
|
notify: update-initramfs
|
|
|
|
|
|
|
|
- name: Prevent normal users from running su
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/pam.d/su
|
|
|
|
regexp: '^.*auth\s+required\s+pam_wheel.so$'
|
|
|
|
line: 'auth required pam_wheel.so'
|