@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
21 lines (19 loc) • 584 B
YAML
- name: "Ensure {{ app_name }} is installed"
apt:
name: gist
state: "{{ app_state | default('present') }}"
update_cache: "{{ omit if skip_package_cache_update is defined else 'true' }}"
- name: Ensure token is added
become_user: "{{ user.username }}"
copy:
content: "{{ github_gist_token }}"
dest: ~/.gist
mode: 0600
loop: "{{ user_configs }}"
loop_control:
label: "{{ user.username }}"
loop_var: user
when:
- (user.system is not defined) or ((user.system is defined) and (not user.system))
- user.github_gist_token is defined