AnsibleΒΆ
- Prefer dictionary syntax for passing many arguments to a module.
- name: Ensure proper permissions on apps directory
file:
path: "/opt/apps/"
mode: 0755
group: "osf"
owner: "www-data"
- Do not prefix task names with the name of the role.
# YES
- name: Make user python is installed
apt: name="python-dev"
# NO
- name: uwsgi | Make user python is installed
apt: name="python-dev"
- Prefix all default variables with the role name and an underscore.
# OSF role
osf_virtualenv: "/opt/envs/osf/"
osf_repo_branch: "master"
- Document default variables using comments.