ansible-workspace
This project is being created to mitigate frustration when starting work in a new environment. The idea is these playbooks and roles are used to maintain various systems ranging from local workstations where full control is allowed, to remote servers on customer premises with only ssh access.
Roles
common
Small tasks that don't fit into their own role and are useful to other roles and playbooks.
has_command
Checks /usr/local/bin
for the command contained in the command
variable
and sets the fact has_{{ command }}
on whether the command exists or not.
- name: check nvim
include_role:
name: common
tasks_from: has_command
vars:
- command: nvim
If nvim exists in /usr/local/bin
, has_nvim
will be true
.
git_local_checkout
This role connects to a remote git repository and checks it out into a local
work directory. Projects like Anyenv require
a git clone
in order to install. Systems without Internet access, or limited
access, will not be able to clone the repository. Using git_local_checkout
,
Ansible can be configured to copy the local checkout to the remote server.