Files
ansible_role_package/tasks/pkgs/httpie.yml
Matthew Stobbs ef8452eb0e remove unneeded notifys
Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
2025-05-12 12:26:35 -06:00

26 lines
662 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add httpie
when:
- httpie_configured is undefined
block:
- name: Load httpie config
ansible.builtin.include_tasks:
file: config/httpie.yml
- name: Append httpie to pkg_flatpak
when:
- ansible_system == 'Linux'
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
- name: Append httpie to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [httpie.pkg] }}"
- name: Set httpie_configured
ansible.builtin.set_fact:
httpie_configured: true