Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[debops.root_account] Install shell used by 'root'
The 'debops.root_account' role will check what shell has been set for the 'root' account (if any) and will ensure that the specified shell package is installed on the host.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
ansible/roles/debops.root_account/templates/lookup/root_account__shell_packages.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% set root_account__tpl_shells = [] %} | ||
{% if root_account__shell|d() %} | ||
{% if root_account__shell in root_account__shell_package_map.keys() %} | ||
{% set _ = root_account__tpl_shells.append(root_account__shell_package_map[root_account__shell]) %} | ||
{% endif %} | ||
{% endif %} | ||
{{ root_account__tpl_shells | to_json }} |