{%- from "ansible/map.jinja" import server with context %}
{%- if server.enabled %}

ansible_packages:
  pip.installed:
  - names:
    - ansible

ansible_user:
  user.present:
  - name: ansible
  - home: /srv/ansible

ansible_conf_dir:
  file.directory:
  - name: /etc/ansible

/etc/ansible/hosts:
  file.managed:
  - source: salt://ansible/files/hosts
  - template: jinja

{%- endif %}