45 lines
880 B
YAML
45 lines
880 B
YAML
---
|
|
- name: Create wheel group
|
|
group:
|
|
name: wheel
|
|
state: present
|
|
- name: Create losted user
|
|
user:
|
|
name: losted
|
|
state: present
|
|
group: wheel
|
|
shell: /bin/bash
|
|
|
|
- name: Set NOPASSWORD in sudoers
|
|
lineinfile:
|
|
dest: /etc/sudoers
|
|
state: present
|
|
regexp: '^%sudo'
|
|
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
|
validate: 'visudo -cf %s'
|
|
|
|
- name: Put htop config
|
|
template:
|
|
src: files/htoprc
|
|
dest: /etc/htoprc
|
|
- name: Put mc config
|
|
template:
|
|
src: files/mcrc
|
|
dest: /etc/mc/mc.ini
|
|
- name: Remove vim root config
|
|
become: yes
|
|
file:
|
|
path: /root/.viminfo
|
|
state: absent
|
|
- name: Put vim config
|
|
template:
|
|
src: files/vimrc
|
|
dest: /etc/vimrc
|
|
- name: Put screen config
|
|
template:
|
|
src: files/screenrc
|
|
dest: /etc/screenrc
|
|
- name: Change hostname
|
|
ansible.builtin.hostname:
|
|
name: "{{ inventory_hostname }}"
|