Files
ansible_role_package/tasks/pkgs/httpie.yml
2025-03-03 12:04:09 -07:00

29 lines
712 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 to pkg_flatpak
when:
- ansible_system == 'Linux'
notify:
- Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
- name: Append 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