@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
27 lines (23 loc) • 555 B
YAML
- name: Install CUPS and avahi-daemon
dnf:
name: cups
state: present
update_cache: "{{ omit if skip_package_cache_update is defined else 'true' }}"
- name: Copy CUPS configuration
copy:
src: cupsd.conf
dest: "{{ cups_conf_path }}"
owner: root
mode: 0644
notify:
- enable and restart cups
- enable and restart avahi
- name: Gather package facts
package_facts:
manager: auto
- name: Restart Samba (if installed)
service:
name: smbd
state: restarted
when: ('smbd' in ansible_facts.packages)