Skip to content

chore(ansible): update ansible#137

Merged
shiron-dev merged 5 commits intomainfrom
feat-ansible
Jul 1, 2025
Merged

chore(ansible): update ansible#137
shiron-dev merged 5 commits intomainfrom
feat-ansible

Conversation

@shiron-dev
Copy link
Owner

@shiron-dev shiron-dev commented Jul 1, 2025

This pull request introduces several enhancements and fixes to the Ansible configuration and playbooks, focusing on improving efficiency, adding backup functionality, and refining configuration management. Key changes include updates to ansible.cfg for better performance, the addition of backup mechanisms, and improvements in handling configuration paths and files.

Configuration and Performance Improvements:

  • Updated ansible.cfg to enable pipelining, smart gathering, memory-based fact caching, and increased forks for better performance.
  • Added ansible_connection: local and dynamic Python interpreter resolution in hosts.yml for better localhost handling.

Backup and File Management:

  • Introduced a backup mechanism for configuration files and direct home files, ensuring they are copied to a backup directory before being modified or removed. [1] [2]
  • Added tasks to create a backup directory dynamically in the set_facts role.

Refinements in Configuration Handling:

  • Improved tasks in roles/config/tasks/all.yml to handle .config and .local/share patterns more clearly and to better manage symlinks and unwanted paths.
  • Enhanced the logic for handling direct home files, including backup, removal, and symlink creation.

Miscellaneous Updates:

  • Changed the path for VSCode extensions list from extensions to data/extensions.txt for better organization.
  • Minor updates to playbooks like localhost.yml to disable fact gathering and use the free strategy for efficiency.

- Updated .gitignore to exclude backup directory.
- Added tasks to backup config items before removal in all.yml.
- Introduced backup directory setup in main.yml.
- Added new settings in ansible.cfg for host key checking, fact caching, and pipelining.
- Modified hosts.yml to streamline localhost configuration and remove unnecessary nesting.
- Updated localhost.yml to disable fact gathering and set the strategy to free.
…ion task

- Deleted the obsolete extensions file from the configuration.
- Updated the installation task to read from the new extensions.txt file instead of the removed extensions file.
- Added tasks to process files for .config and .local/share directories.
- Introduced handling for direct home files, including backup and removal tasks.
- Updated existing tasks to improve clarity and functionality.
@shiron-dev shiron-dev changed the title chore: update ansible chore(ansible): update ansible Jul 1, 2025
- Removed the lock file from the ansible directory.
- Updated localhost.yml to set gather_facts to false.
- Added file mode setting for copied files in all.yml to ensure proper permissions.
@shiron-dev shiron-dev merged commit 943dd0f into main Jul 1, 2025
8 checks passed
@shiron-dev shiron-dev deleted the feat-ansible branch July 1, 2025 14:20
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.

1 participant