ソースを参照

Tests - Add base Ansible test.yml

Jared Ledvina 7 年 前
コミット
54c9a75a50
1 ファイル変更21 行追加0 行削除
  1. 21 0
      tests/test.yml

+ 21 - 0
tests/test.yml

@@ -0,0 +1,21 @@
+---
+- hosts: all
+  pre_tasks:
+    - name: Add localhost to sensu_masters group
+      add_host:
+        name: localhost
+        groups: sensu_masters
+      changed_when: false
+
+  roles:
+    - role: role_under_test
+      sensu_master: true
+      sensu_include_dashboard: true
+      rabbitmq_server: true
+      redis_server: true
+      rabbitmq_host: localhost
+      redis_host: localhost
+      sensu_api_host: localhost
+      # Workaround for https://github.com/geerlingguy/docker-ubuntu1604-ansible/issues/5
+      ansible_default_ipv4:
+        address: 127.0.0.1