---

- name:  deploy Open Stack compute nodes
  hosts: openstack-compute
  gather_facts: True

  vars_files:
   - /srv/web/infra/ansible/vars/global.yml
   - "/srv/private/ansible/vars.yml"
   - /srv/web/infra/ansible/vars/RedHat.yml
   - /srv/web/infra/ansible/vars/fedora-cloud.yml
   - "/srv/private/ansible/files/openstack/passwords.yml"

  roles:
  - base
  - rkhunter
  - nagios_client
  - fas_client
  - sudo
  - cloud_compute

  pre_tasks:
  - import_tasks: "{{ tasks_path }}/yumrepos.yml"

  tasks:
  - import_tasks: "{{ tasks_path }}/2fa_client.yml"
  - import_tasks: "{{ tasks_path }}/motd.yml"

  handlers:
  - import_tasks: "{{ handlers_path }}/restart_services.yml"
