Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing the way tasks for rules 1.1.2.2, 1.1.2.3, and 1.1.2.4 are written #199

Open
DianaMariaDDM opened this issue Jan 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@DianaMariaDDM
Copy link
Contributor

Feature Request or Enhancement

I want to propose an enhancement for tasks 1.1.2.2, 1.1.2.3, and 1.1.2.4 .

Summary of Request
Given the fact that we have two multi-line tasks that tackle the same rules only with different methods, we could create separate tasks for each rule.
Each task will append the value of the option for the mount point to a list type of variable (e.g. tmp_partition_mount_options) using the ansible set_fact module.

We can create handler tasks that do the actual writing of the tmp file based on each method, using tmp_systemd or using fstab.

The variable that contains the options can be initialized in a prelim task.

Describe Alternatives You've Considered
None, really.

Suggested Code
The suggested code will be provided in a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants