56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
---
|
|
- name: install default packages
|
|
tags:
|
|
- packages
|
|
apt: name={{item}} state=present update_cache=yes
|
|
with_items:
|
|
- vim
|
|
- sudo
|
|
- bash-completion
|
|
- rsync
|
|
- apt-transport-https
|
|
- curl
|
|
- git
|
|
- htop
|
|
- screen
|
|
- iptraf-ng
|
|
- psmisc
|
|
|
|
- name: remove packages
|
|
tags:
|
|
- packages
|
|
apt: name={{item}} state=absent purge=yes
|
|
with_items:
|
|
- command-not-found
|
|
- command-not-found-data
|
|
|
|
- name: remove additional packages
|
|
tags:
|
|
- packages
|
|
apt: name={{item}} state=absent purge=yes
|
|
with_items: "{{ additional_remove_packages }}"
|
|
when: additional_remove_packages is defined and additional_remove_packages
|
|
|
|
- name: install additional packages
|
|
tags:
|
|
- packages
|
|
apt: name={{item}} state=present update_cache=yes
|
|
with_items: "{{ additional_packages }}"
|
|
when: additional_packages is defined and additional_packages
|
|
|
|
- name: configure dotfiles
|
|
tags:
|
|
- packages
|
|
copy: src=files/{{ item }} dest=/home/{{ansible_user}}/{{ item }}
|
|
with_items:
|
|
- .bashrc
|
|
- .screenrc
|
|
- .vimrc
|
|
|
|
- name: set default editor
|
|
tags:
|
|
- packages
|
|
alternatives:
|
|
name: editor
|
|
path: /usr/bin/vim
|