1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-29 17:18:13 +01:00
eoli3n-dotfiles/roles/packages-desktop
2017-12-29 12:38:06 +01:00
..
handlers added flush handlers 2017-12-19 16:03:05 +01:00
tasks include by_os 2017-12-29 12:38:06 +01:00
README.md include by_os 2017-12-29 12:38:06 +01:00

Specific OS packages

Add a tasks file named with hostname of target

echo <<\EOF > tasks/by_os/<archlinux|debian|centos|freebsd>/main.yml
---
- name: Install <archlinux|debian|centos|freebsd> packages
  pacman: name={{item}} state=present
  with_items:
    - vim
  become: True
EOF

Specific hosts packages

Add a tasks file named with hostname of target

mkdir tasks/by_host/$(hostname)
echo <<\EOF > tasks/by_host/$(hostname)/main.yml
---
- name: Install $(hostname) packages
  pacman: name={{item}} state=present
  with_items:
    - vim
  become: True
EOF