@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
22 lines (20 loc) • 623 B
YAML
- name: "Install {{ user.username }}'s gems"
gem:
name: "{{ item.name }}"
state: present
loop: "{{ user.gems | default([]) }}"
ignore_errors: true
when: ansible_system == 'Linux'
- name: "Install {{ user.username }}'s gems (Mac OS)"
gem:
name: "{{ item.name }}"
state: present
loop: "{{ user.gems | default([]) }}"
ignore_errors: true
when: ansible_system == 'Darwin'
environment:
PATH: "/usr/local/opt/ruby/bin:{{ ansible_env.PATH }}"
LDFLAGS: "-L/usr/local/opt/ruby/lib"
CPPFLAGS: "-I/usr/local/opt/ruby/include"
PKG_CONFIG_PATH: "/usr/local/opt/ruby/lib/pkgconfig"