UNPKG

@installdoc/ansible-gas-station

Version:

An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤

25 lines (22 loc) 841 B
--- - name: List installed MAS apps become: false environment: PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:{{ ansible_env.PATH }} command: mas list register: mas_list changed_when: false - name: Ensure Apple Office/Productivity apps are installed become: false environment: PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:{{ ansible_env.PATH }} command: "mas install '{{ item.id | default(item) }}'" loop: "{{ mas_apple_office_software }}" when: (item.id | string) not in mas_list.stdout - name: Ensure Microsoft Office apps are installed become: false environment: PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:{{ ansible_env.PATH }} command: "mas install '{{ item.id | default(item) }}'" loop: "{{ mas_microsoft_office_software }}" when: (item.id | string) not in mas_list.stdout