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 ⛽🔥🤤

20 lines (17 loc) 677 B
--- - name: Check if the fonts are present find: paths: "{{ fonts_dir + '/' + font | replace(' ','') }}" patterns: "(?i){{ font | replace(' ','') }}*" use_regex: true register: fonts_result - name: "Ensure {{ fonts_dir + '/' + font | replace(' ','') }} directory exists" file: path: "{{ fonts_dir + '/' + font | replace(' ','') }}" state: directory mode: 0655 - name: "Ensure {{ font }} is installed" # noqa 301 501 environment: PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:{{ ansible_env.PATH }} shell: "gfi download -d {{ fonts_dir + '/' + font | replace(' ','') }} '{{ font }}' && fc-cache -f" when: fonts_result.matched == 0