hpc-cluster/ansible-ctdo/roles/packages/tasks/main.yml

56 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2020-01-12 12:08:05 +00:00
---
- 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
2020-01-12 17:15:19 +00:00
- psmisc
2020-01-12 12:08:05 +00:00
- 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