1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 14:13:53 +01:00

specific hosts packages

This commit is contained in:
eoli3n 2017-12-19 17:49:37 +01:00
parent 19f464e689
commit 8b3a3a00ef
5 changed files with 34 additions and 1 deletions

1
TODO

@ -2,6 +2,7 @@
- add tmux - add tmux
- mv files to sync if synchronize, then reinit submodules - mv files to sync if synchronize, then reinit submodules
- use maximum of copy + backup=yes - use maximum of copy + backup=yes
- TOFIX: autolaunch i3 apps good order
- TOFIX: startx blank screen in vm - TOFIX: startx blank screen in vm
- TOFIX: ssh-agent ssh-add in zshrc startx - TOFIX: ssh-agent ssh-add in zshrc startx
- TOFIX: find a way to clean tmp dir while packer install - TOFIX: find a way to clean tmp dir while packer install

@ -0,0 +1,13 @@
# Specific hosts packages
Add a tasks file named with hostname of target
```
echo <<\EOF > tasks/$(hostname).yml
---
- name: Install $(hostname) packages
pacman: name={{item}} state=present
with_items:
- vim
become: True
EOF
```

@ -0,0 +1,6 @@
---
- name: Install arch-itect packages
pacman: name={{item}} state=present
with_items:
- thunderbird
become: True

@ -12,7 +12,6 @@
- xorg-xrdb - xorg-xrdb
- xorg-xfd - xorg-xfd
- connman - connman
- geary
- ttf-hack - ttf-hack
become: True become: True
@ -28,5 +27,13 @@
when: ansible_os_family == "Archlinux" when: ansible_os_family == "Archlinux"
notify: clean tmp packer notify: clean tmp packer
- name: Test if hostname specific tasks exists
stat: path={{ playbook_dir }}roles/packages-desktop/tasks/{{ ansible_hostname }}.yml
register: hostname_packages_file
- name: Run hostname specific tasks
import_tasks: {{ playbook_dir }}roles/packages-desktop/tasks/{{ ansible_hostname }}.yml
when: hostname_packages_file.stat.exists
- name: Flush handlers to clean /tmp - name: Flush handlers to clean /tmp
meta: flush_handlers meta: flush_handlers

@ -0,0 +1,6 @@
---
- name: Install osz packages
pacman: name={{item}} state=present
with_items:
- geary
become: True