Skip to content

development#17

Merged
Shurgentum merged 3 commits intomainfrom
dev
Jan 28, 2026
Merged

development#17
Shurgentum merged 3 commits intomainfrom
dev

Conversation

@Shurgentum
Copy link
Owner

Summary

  • Fix Ansible to use ansible_facts.env and ansible_facts.user_id; update README note to recommend installing ansible via pip3.
  • Use loop index for Dock item positions (add index_var, replace item.pos with idx + 1, remove redundant pos defaults).
  • Add work configs and format Zed settings with JSONC standard.

Notes

  • Ensures compatibility with newer Ansible versions and simplifies Dock position handling.

Update Ansible playbooks and defaults to reference fact-based environment
and user variables instead of deprecated ansible_env and ansible_user_id to
ensure compatibility with newer Ansible versions and avoid variable
deprecation issues.

Also add a note to README to install ansible via pip3 to ensure the
required tool is available for running the playbooks.
Use the loop index as the source of truth for Dock item positions
instead of relying on a separate explicit pos attribute.

- Add index_var to loop_control and replace item.pos with idx + 1
  when adding and moving items with dockutil.
- Remove redundant pos fields from defaults for all dock_add items.
- formatted Zed settings with JSONC standard
Copilot AI review requested due to automatic review settings January 28, 2026 12:24
@Shurgentum Shurgentum merged commit a2d90eb into main Jan 28, 2026
5 checks passed
@Shurgentum Shurgentum deleted the dev branch January 28, 2026 12:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the macOS development Ansible playbook for newer Ansible fact variable access, simplifies Dock item positioning, and adds a work-specific configuration set (including Zed settings formatting updates).

Changes:

  • Replaced legacy Ansible variables (ansible_env, ansible_user_id) with fact-based access (ansible_facts.env, ansible_facts.user_id) in key tasks/playbooks.
  • Simplified Dock positioning by deriving positions from loop index (removing per-item pos values in defaults).
  • Added main.work.yml and defaults.work.yml for work setup, and reformatted Zed settings (JSONC-style).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tasks/global.yml Uses ansible_facts.env.HOME for home-directory paths when creating config directories.
tasks/dock.yml Computes Dock positions from loop index and removes dependence on item.pos.
tasks/defaults.yml Updates .osx.sh.done checksum read path to use ansible_facts.env.HOME.
main.yml Displays user via ansible_facts.user_id instead of ansible_user_id.
main.work.yml Adds a work-specific playbook entrypoint using defaults.work.yml.
dotfiles/zed/settings.json Reformats Zed settings to JSONC-style formatting and enables PHP formatting config.
defaults.yml Updates dotfiles destination to use ansible_facts.env.HOME and removes Dock pos fields.
defaults.work.yml Adds work-specific defaults (brew packages/casks, dock config, symlinks).
README.md Adds note to install Ansible via pip3 install ansible.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 8 to 11
- name: Get checksum from .osx.sh.done file
ansible.builtin.slurp:
src: "{{ ansible_env.HOME }}/.osx.sh.done"
src: "{{ ansible_facts.env.HOME }}/.osx.sh.done"
register: osx_done_checksum
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tasks/defaults.yml switches the slurp path to ansible_facts.env.HOME, but the later copy task still writes to {{ ansible_env.HOME }}. This is inconsistent with the rest of the PR and can reintroduce the same compatibility issue you’re fixing; update the dest path to use ansible_facts.env.HOME as well (or otherwise standardize on one source of truth).

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,92 @@
---
- name: Confiugre
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in play name: Confiugre should be Configure.

Suggested change
- name: Confiugre
- name: Configure

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants