write debug lists to files
This commit is contained in:
@@ -73,79 +73,93 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
- pkg_appimage|length > 0
|
- pkg_appimage|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_appimage
|
content: "{{ pkg_appimage | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_appimage.yml"
|
||||||
- name: List archives
|
- name: List archives
|
||||||
when:
|
when:
|
||||||
- pkg_archive|length > 0
|
- pkg_archive|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_debug
|
content: "{{ pkg_archive | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_archive.yml"
|
||||||
- name: List cargo
|
- name: List cargo
|
||||||
when:
|
when:
|
||||||
- pkg_cargo|length > 0
|
- pkg_cargo|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_cargo
|
content: "{{ pkg_cargo | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_cargo.yml"
|
||||||
- name: List casks
|
- name: List casks
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
- pkg_cask|length > 0
|
- pkg_cask|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_cask
|
content: "{{ pkg_cask | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_cask.yml"
|
||||||
- name: List flatpak remotes
|
- name: List flatpak remotes
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
- flatpak_remote|length > 0
|
- flatpak_remote|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: flatpak_remote
|
content: "{{ flatpak_remote | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/flatpak_remote.yml"
|
||||||
- name: List flatpaks
|
- name: List flatpaks
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
- pkg_flatpak|length > 0
|
- pkg_flatpak|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_flatpak
|
content: "{{ pkg_flatpak | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_flatpak.yml"
|
||||||
- name: List go
|
- name: List go
|
||||||
when:
|
when:
|
||||||
- pkg_go|length > 0
|
- pkg_go|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_go
|
content: "{{ pkg_go | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_go.yml"
|
||||||
- name: List npm
|
- name: List npm
|
||||||
when:
|
when:
|
||||||
- pkg_npm|length > 0
|
- pkg_npm|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_npm
|
content: "{{ pkg_npm | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_npm.yml"
|
||||||
- name: List pipx
|
- name: List pipx
|
||||||
when:
|
when:
|
||||||
- pkg_pipx|length > 0
|
- pkg_pipx|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_pipx
|
content: "{{ pkg_pipx | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_pipx.yml"
|
||||||
- name: List source
|
- name: List source
|
||||||
when:
|
when:
|
||||||
- pkg_src|length > 0
|
- pkg_src|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_src
|
content: "{{ pkg_src | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_src.yml"
|
||||||
- name: List system
|
- name: List system
|
||||||
when:
|
when:
|
||||||
- pkg_sys|length > 0
|
- pkg_sys|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_sys
|
content: "{{ pkg_sys | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_sys.yml"
|
||||||
- name: List homebrew taps
|
- name: List homebrew taps
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
- brewtap|length > 0
|
- brewtap|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: brewtap
|
content: "{{ brewtap | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/brewtap.yml"
|
||||||
- name: List taps
|
- name: List taps
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Darwin'
|
- ansible_system == 'Darwin'
|
||||||
- pkg_tap|length > 0
|
- pkg_tap|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_tap
|
content: "{{ pkg_tap | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_tap.yml"
|
||||||
- name: List snaps
|
- name: List snaps
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
- pkg_snap|length > 0
|
- pkg_snap|length > 0
|
||||||
ansible.builtin.debug:
|
ansible.bulitin.copy:
|
||||||
var: pkg_snap
|
content: "{{ pkg_snap | to_yaml }}"
|
||||||
|
file: "{{ d_tempdir.path }}/pkg_snap.yml"
|
||||||
|
|
||||||
- name: Flush handlers to ensure dependencies are installed
|
- name: Flush handlers to ensure dependencies are installed
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
@@ -241,6 +255,8 @@
|
|||||||
file: "src/{{ pkg }}.yml"
|
file: "src/{{ pkg }}.yml"
|
||||||
|
|
||||||
- name: Cleanup {{ d_tempdir.path }}
|
- name: Cleanup {{ d_tempdir.path }}
|
||||||
|
when:
|
||||||
|
- not debug
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
state: absent
|
||||||
path: "{{ d_tempdir.path }}"
|
path: "{{ d_tempdir.path }}"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
- Depend cargo
|
- Depend cargo
|
||||||
changed_when: true
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + ['starship'] }}"
|
pkg_cargo: "{{ pkg_cargo + [{'name': 'starship', 'locked': true}] }}"
|
||||||
|
|
||||||
- name: Set starship_configured
|
- name: Set starship_configured
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user