--- # autofs tasks - name: prepare autofs(8) directory structure tags: - autofs file: > mode=0755 path=/etc/auto.master.d/ state=directory - name: /etc/auto.master.d/net.autofs file tags: - autofs template: > dest=/etc/auto.master.d/net.autofs group=root mode=0644 owner=root src=net.autofs.j2 notify: - restart "autofs" - name: install "autofs" tags: - autofs - packages apt: > name=autofs state=present - name: ensure service "autofs" is enabled and started tags: - autofs - services service: > enabled=yes name=autofs state=started