1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00
eoli3n-dotfiles/roles/packages
2020-01-02 00:24:53 +01:00
..
tasks init tiny role 2020-01-02 00:24:53 +01:00
README.md moved every installation to packages role 2020-01-01 00:10:25 +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:
    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