@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
30 lines (26 loc) • 821 B
YAML
- name: Ensure groups are present
ansible.windows.win_group:
name: "{{ group }}"
state: present
loop: "{{ user.groups }}"
loop_control:
loop_var: group
when: user.groups is defined
- name: Ensure user belongs to configured groups
ansible.windows.win_user:
name: "{{ user.username }}"
groups: "{{ user.groups }}"
groups_action: add
when: user.groups is defined
- name: Ensure tinypng-cil key is configured
ansible.windows.win_copy:
content: "{{ user.tinypngkey }}"
dest: '%USERPROFILE%\.tinypng'
when: user.tinypngkey is defined and user.tinypngkey | length > 0
- name: Ensure .Net tools are installed # noqa 301
command: "dotnet tool install -g {{ package.name }}"
loop: "{{ dotnet_tools }}"
loop_control:
label: '{{ package.name }}'
loop_var: package