fix copy statements for debug

This commit is contained in:
Matthew Stobbs
2025-03-25 13:52:08 -06:00
parent 9a17894bc9
commit 3174a2e8c1

View File

@@ -73,93 +73,107 @@
when:
- ansible_system == 'Linux'
- pkg_appimage|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_appimage | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_appimage.yml"
dest: "{{ d_tempdir.path }}/pkg_appimage.yml"
mode: '0644'
- name: List archives
when:
- pkg_archive|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_archive | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_archive.yml"
dest: "{{ d_tempdir.path }}/pkg_archive.yml"
mode: '0644'
- name: List cargo
when:
- pkg_cargo|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_cargo | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_cargo.yml"
dest: "{{ d_tempdir.path }}/pkg_cargo.yml"
mode: '0644'
- name: List casks
when:
- ansible_system == 'Darwin'
- pkg_cask|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_cask | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_cask.yml"
dest: "{{ d_tempdir.path }}/pkg_cask.yml"
mode: '0644'
- name: List flatpak remotes
when:
- ansible_system == 'Linux'
- flatpak_remote|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ flatpak_remote | to_yaml }}"
file: "{{ d_tempdir.path }}/flatpak_remote.yml"
dest: "{{ d_tempdir.path }}/flatpak_remote.yml"
mode: '0644'
- name: List flatpaks
when:
- ansible_system == 'Linux'
- pkg_flatpak|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_flatpak | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_flatpak.yml"
dest: "{{ d_tempdir.path }}/pkg_flatpak.yml"
mode: '0644'
- name: List go
when:
- pkg_go|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_go | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_go.yml"
dest: "{{ d_tempdir.path }}/pkg_go.yml"
mode: '0644'
- name: List npm
when:
- pkg_npm|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_npm | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_npm.yml"
dest: "{{ d_tempdir.path }}/pkg_npm.yml"
mode: '0644'
- name: List pipx
when:
- pkg_pipx|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_pipx | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_pipx.yml"
dest: "{{ d_tempdir.path }}/pkg_pipx.yml"
mode: '0644'
- name: List source
when:
- pkg_src|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_src | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_src.yml"
dest: "{{ d_tempdir.path }}/pkg_src.yml"
mode: '0644'
- name: List system
when:
- pkg_sys|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_sys | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_sys.yml"
dest: "{{ d_tempdir.path }}/pkg_sys.yml"
mode: '0644'
- name: List homebrew taps
when:
- ansible_system == 'Darwin'
- brewtap|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ brewtap | to_yaml }}"
file: "{{ d_tempdir.path }}/brewtap.yml"
dest: "{{ d_tempdir.path }}/brewtap.yml"
mode: '0644'
- name: List taps
when:
- ansible_system == 'Darwin'
- pkg_tap|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_tap | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_tap.yml"
dest: "{{ d_tempdir.path }}/pkg_tap.yml"
mode: '0644'
- name: List snaps
when:
- ansible_system == 'Linux'
- pkg_snap|length > 0
ansible.bulitin.copy:
ansible.builtin.copy:
content: "{{ pkg_snap | to_yaml }}"
file: "{{ d_tempdir.path }}/pkg_snap.yml"
dest: "{{ d_tempdir.path }}/pkg_snap.yml"
mode: '0644'
- name: Flush handlers to ensure dependencies are installed
ansible.builtin.meta: flush_handlers