Skip to content
Snippets Groups Projects
Select Git revision
  • b4ca1e5e25e7530af9954f8e2d0e1db8c1bc82d9
  • main default protected
2 results

main.yml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.yml 567 B
    - name: Install unbound packages
      apt: name=unbound state=present
      tags:
        - packages
        - unbound
    
    - name: Install unbound config
      template: src=unbound.conf.j2 dest=/etc/unbound/unbound.conf.d/unbound.conf
      tags:
        - config
        - unbound
      notify:
        - restart unbound
    
    - name: Ensure unbound-control keys are present
      command: /usr/sbin/unbound-control-setup
      args:
        creates: /etc/unbound/unbound_control.key
      tags:
        - unbound
    
    - name: Enable unbound service
      service: name=unbound state=started enabled=yes
      tags:
        - service
        - unbound