binarypenguin / automation

Ansible playbook that sets up my network
3 stars 0 forks source link

Add support for Arch Linux #9

Closed tjbenator closed 8 years ago

tjbenator commented 8 years ago

There is a Pacman module for linux. Package names will be different. Will need to figure out how to map it out.

tjbenator commented 8 years ago

Easiest way seems to be to check which OS Family the system is running and then include it's respective file:

# OS Family Check
- include: debian.yml
  when: ansible_os_family == 'Debian'
  tags: package

- include: arch.yml
  when: ansible_os_family == 'Archlinux'
  tags: package