updated tasks so they are only run once
This commit is contained in:
@@ -1,40 +1,52 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Source pkg installation
|
||||
- name: Add ghostty
|
||||
when:
|
||||
- ghostty.method == 'src'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
- ghostty_configured is undefined
|
||||
block:
|
||||
- name: Build ghostty from source
|
||||
notify:
|
||||
- Depend zig
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
||||
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
||||
- name: Load ghostty config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/ghostty.yml
|
||||
|
||||
- name: Appimage installation
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
|
||||
|
||||
- name: Sys pkg installation
|
||||
when:
|
||||
- ghostty.method == 'sys'
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
- name: Source pkg installation
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
notify:
|
||||
- Depend terra repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
||||
- ghostty.method == 'src'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
block:
|
||||
- name: Build ghostty from source
|
||||
notify:
|
||||
- Depend zig
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
||||
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
||||
|
||||
- name: Cask pkg installation
|
||||
when:
|
||||
- ghostty.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
|
||||
- name: Appimage installation
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
|
||||
|
||||
- name: Sys pkg installation
|
||||
when:
|
||||
- ghostty.method == 'sys'
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
notify:
|
||||
- Depend terra repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
||||
|
||||
- name: Cask pkg installation
|
||||
when:
|
||||
- ghostty.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
|
||||
|
||||
- name: Set ghostty_configured
|
||||
ansible.builtin.set_fact:
|
||||
ghostty_configured: true
|
||||
|
||||
Reference in New Issue
Block a user