agentsclimarketplace

Developing ansible playbooks

Skill brlin-tw/developing-ansible-playbooks

Provide guidelines on how to develop Ansible playbooks that are compliant with project standards. Should be used when generating, modifying, or reviewing Ansible playbooks, roles, or collections.From its SKILL.md

Install
npx -y skills add brlin-tw/developing-ansible-playbooks

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.6 KB, 305 tokens by cl100k_base, as published. Nobody here has run it

The developing-ansible-playbooks agent skill

Provide guidelines on how to develop Ansible playbooks that are compliant with project standards. Should be used when generating, modifying, or reviewing Ansible playbooks, roles, or collections.

Rule of thumb

If the Ansible playbook, role, or collection being developed has existing examples in the project repository, always refer to those examples and mimic their style and structure to ensure consistency.

If there are no existing examples in the project repository, refer to the following guidelines:

Task structure

The following structure should be followed for each task in the Ansible playbook:

  • The when key should be placed at the start of the task, right after the name key.
  • The module name should always be the last key of the task.
  • The fully qualified collection name (FQCN) form should always be used.
  • If the become key is used, it should be placed right after the when key.
  • The become key is mandatory for tasks that require elevated privileges.
  • Ansible fact references should use the ansible_facts prefix (e.g., ansible_facts['os_family'] instead of ansible_os_family).
  • Use loop instead of with_items for iterating over lists.
  • When loops are used, customize the loop variable name using loop_control for better readability.
  • Always use true and false for boolean values.

What ships with it: 26 files

95.0 KB alongside SKILL.md, 10 of them executable

LICENSES/

Keep looking

Skills are one crate of 326,149. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.