1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-27 02:25:15 +01:00
eoli3n-dotfiles/roles/packages-common
2019-12-01 18:19:26 +01:00
..
tasks add rsync common package 2019-12-01 18:19:26 +01:00
README.md fixed pacman loops 2019-06-15 13:56:03 +02: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:
    state: present
    name:
      - 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:
    state: present
    name:
      - vim
  become: True
EOF