Skip to content

feat: add skip options for cache update, apt.conf.d templates, and policyrc.d#44

Open
xiaoyao9184 wants to merge 3 commits intoweareinteractive:masterfrom
xiaoyao9184:feature/skip-tasks
Open

feat: add skip options for cache update, apt.conf.d templates, and policyrc.d#44
xiaoyao9184 wants to merge 3 commits intoweareinteractive:masterfrom
xiaoyao9184:feature/skip-tasks

Conversation

@xiaoyao9184
Copy link

This PR refactors and extends skip conditions for APT-related tasks, introducing
clear, top-level control variables with explicit defaults.
Users can now enable or disable APT operations declaratively.

New Variables:

  • apt_update
    Type: bool
    Default: true
    Purpose: Controls whether to run apt-get update and related cache-refresh operations.
    Behavior: When false, apt update and apt upgrade tasks performing cache updates are skipped.

  • apt_general_periodic
    Type: bool
    Default: true
    Purpose: Enables or disables management of both general and periodic apt.conf.d templates.
    Behavior: When false, no templates 10general and 10periodic rendered under /etc/apt/apt.conf.d.

Change Variables:

  • apt_policy
    Type: int
    Default: 101
    Purpose: Determines whether to manage policy priorities.
    Behavior: When value < 0, skips creation of /usr/sbin/policy-rc.d.

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