ansible-ffrgb/roles/common/tasks/main.yml

43 lines
1011 B
YAML
Raw Normal View History

2017-03-26 20:02:33 +02:00
---
- name: Install misc software
apt: name={{ item }}
2017-03-26 20:02:33 +02:00
with_items:
- dnsutils
- git
2017-03-26 20:02:33 +02:00
- htop
- less
- net-tools
2017-03-26 20:02:33 +02:00
- openssl
- 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' }
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'