initial commit
This commit is contained in:
parent
2bee883409
commit
948a165785
15
README.md
15
README.md
@ -1,2 +1,15 @@
|
|||||||
# base
|
brainsys base configuration
|
||||||
|
===========================
|
||||||
|
|
||||||
|
This roles simply set up some locale, date and packages for my own usage.
|
||||||
|
|
||||||
|
License
|
||||||
|
-------
|
||||||
|
|
||||||
|
MIT
|
||||||
|
|
||||||
|
Author Information
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Written by Ludovic Cartier <ludovic.cartier@brainsys.io>
|
||||||
|
|
||||||
|
4
tasks/date.yml
Normal file
4
tasks/date.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- name: base | set date
|
||||||
|
shell:
|
||||||
|
cmd: /usr/bin/timedatectl set-timezone Europe/Paris
|
5
tasks/locales.yml
Normal file
5
tasks/locales.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: locales | configure fr_FR.UTF-8 locale
|
||||||
|
locale_gen:
|
||||||
|
name: fr_FR.UTF-8
|
||||||
|
state: present
|
17
tasks/main.yml
Normal file
17
tasks/main.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
- name: base | apt update cache
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 86400 #One day
|
||||||
|
|
||||||
|
- name: base | install base packages
|
||||||
|
include: packages.yml
|
||||||
|
|
||||||
|
- name: base | configure locales
|
||||||
|
include: locales.yml
|
||||||
|
|
||||||
|
- name: base | install pip3 packages
|
||||||
|
include: pip.yml
|
||||||
|
|
||||||
|
- name: base | set datetime
|
||||||
|
include: date.yml
|
26
tasks/packages.yml
Normal file
26
tasks/packages.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
- name: base | install base packages
|
||||||
|
apt:
|
||||||
|
name: {{ item }}
|
||||||
|
update_cache: true
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
|
- bash-completion
|
||||||
|
- bsd-mailx
|
||||||
|
- curl
|
||||||
|
- deborphan
|
||||||
|
- git-core
|
||||||
|
- htop
|
||||||
|
- iotop
|
||||||
|
- less
|
||||||
|
- locales
|
||||||
|
- ntp
|
||||||
|
- python3-pip
|
||||||
|
- rsync
|
||||||
|
- rsyslog
|
||||||
|
- screen
|
||||||
|
- subversion
|
||||||
|
- sudo
|
||||||
|
- telnet
|
||||||
|
- tmux
|
||||||
|
- vim
|
9
tasks/pip.yml
Normal file
9
tasks/pip.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- name: pip3 | install package
|
||||||
|
pip:
|
||||||
|
name:
|
||||||
|
- ps_mem
|
||||||
|
- bpytop
|
||||||
|
executable: pip3
|
||||||
|
when:
|
||||||
|
- ansible_distribution == 'Debian'
|
Loading…
x
Reference in New Issue
Block a user