mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-26 06:08:35 +01:00
specific hosts packages
This commit is contained in:
parent
19f464e689
commit
8b3a3a00ef
1
TODO
1
TODO
@ -2,6 +2,7 @@
|
||||
- add tmux
|
||||
- mv files to sync if synchronize, then reinit submodules
|
||||
- use maximum of copy + backup=yes
|
||||
- TOFIX: autolaunch i3 apps good order
|
||||
- TOFIX: startx blank screen in vm
|
||||
- TOFIX: ssh-agent ssh-add in zshrc startx
|
||||
- TOFIX: find a way to clean tmp dir while packer install
|
||||
|
13
roles/packages-desktop/README.md
Normal file
13
roles/packages-desktop/README.md
Normal file
@ -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
|
||||
```
|
||||
|
6
roles/packages-desktop/tasks/arch-itect.yml
Normal file
6
roles/packages-desktop/tasks/arch-itect.yml
Normal file
@ -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-xfd
|
||||
- connman
|
||||
- geary
|
||||
- ttf-hack
|
||||
become: True
|
||||
|
||||
@ -28,5 +27,13 @@
|
||||
when: ansible_os_family == "Archlinux"
|
||||
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
|
||||
meta: flush_handlers
|
||||
|
6
roles/packages-desktop/tasks/osz.yml
Normal file
6
roles/packages-desktop/tasks/osz.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Install osz packages
|
||||
pacman: name={{item}} state=present
|
||||
with_items:
|
||||
- geary
|
||||
become: True
|
Loading…
Reference in New Issue
Block a user