Skip to content

Commit

Permalink
Improve support for Debian machine
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Siqueira <[email protected]>
  • Loading branch information
rodrigosiqueira committed Sep 7, 2019
1 parent 5c87e4f commit 9eaeac4
Show file tree
Hide file tree
Showing 31 changed files with 3,944 additions and 17 deletions.
9 changes: 9 additions & 0 deletions roles/X/tasks/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# TODO: This file is very similar to the Arch linux. Probably we can merge it
- name: Install common packages
package:
name: "{{ packages }}"
state: latest
vars:
packages:
- xorg
3 changes: 3 additions & 0 deletions roles/X/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- include: arch.yml
when: ansible_os_family == 'Archlinux'

- include: debian.yml
when: ansible_os_family == 'Debian'

- name: My Xresources
synchronize: src=files/.Xresources dest=/home/{{ item.username }}/.Xresources
with_items: "{{ users }}"
Expand Down
3 changes: 3 additions & 0 deletions roles/automount_external_devices/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- include: arch.yml
when: ansible_os_family == 'Archlinux'

- include: arch.yml
when: ansible_os_family == 'Debian'

# Usually not required
#- name: Copy udev rules
# synchronize: src=files/99-udisks2.rules dest=/etc/udev/rules.d/
1 change: 1 addition & 0 deletions roles/basic_dev_env/tasks/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
- geany
- ctags
- vim
- autoconf
19 changes: 19 additions & 0 deletions roles/basic_dev_env/tasks/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- name: Install basic devel packages
apt:
name: "{{ packages }}"
state: latest
vars:
packages:
- build-essential
- bc
- moreutils # This package has the `errno -l` command. I love it!
- geany
- exuberant-ctags
- vim
- libncurses-dev # Kernel: menus
- libelf-dev # Kernel: orc stuff
- libssl-dev # Kernel: openssl stuff
- flex
- bison
- kernel-package
- autoconf
3 changes: 3 additions & 0 deletions roles/basic_dev_env/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
- include: arch.yml
when: ansible_os_family == 'Archlinux'

- include: debian.yml
when: ansible_os_family == 'Debian'
6 changes: 6 additions & 0 deletions roles/common/tasks/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@
- vim
- xorg-xinit
- net-tools # netstat and related stuff
- rng-tools
- haveged # TODO: we have to enable it, create a task for setup it
- elinks
- abook
- lshw
- htop
35 changes: 35 additions & 0 deletions roles/common/tasks/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: Update system
apt: update_cache=yes upgrade=yes

- name: Install required packages
apt:
name: "{{ packages }}"
state: latest
vars:
packages:
- lxterminal
- rsync
- xterm
- firefox
- alsa-utils
- curl
- wget
- screen
- redshift
- feh
- xmlto
- docbook-xsl
- kmod
- inetutils-tools
- xfce4-power-manager
- vim
- xorg
- xserver-xorg-core
- net-tools # netstat and related stuff
- rng-tools
- haveged # TODO: we have to enable it, create a task for setup it
- elinks
- abook
- lshw
- htop
- sudo
3 changes: 3 additions & 0 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- include: arch.yml
when: ansible_os_family == 'Archlinux'

- include: debian.yml
when: ansible_os_family == 'Debian'

- name: Create configure folder
file: path=/home/{{ item.username }}/.config/ state=directory mode=0755
with_items: "{{ users }}"
Expand Down
Loading

0 comments on commit 9eaeac4

Please sign in to comment.