ansible/playbooks/print.yml
Timo Makinen 2c5ffd666b Fix ordering for print hosts
Cannot create keytab for cups before cups is installed due to missing
/etc/cups directory.
2021-03-25 18:17:16 +00:00

34 lines
742 B
YAML

---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=print"
- name: configure instance
hosts: print
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
roles:
- base
- sssd
- mkhomedir
- cups/server
- role: kerberos/keytab
keytab: /etc/cups/cups.keytab
principals: "HTTP/print.foo.sh@{{ kerberos_realm }}"
tasks:
- name: copy dns zone files
copy:
dest: "/var/lib/unbound/{{ item }}"
src: "/srv/dns/{{ item }}"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart unbound
with_items:
- 24.20.172.in-addr.arpa
- print.foo.sh
- import_role:
name: unbound