]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: add a sample playbook
authorAlfredo Deza <adeza@redhat.com>
Mon, 20 Jun 2016 12:43:30 +0000 (08:43 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 20 Jun 2016 16:24:22 +0000 (12:24 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/deploy_graphite.yml [new file with mode: 0644]
ansible/roles/graphite/tasks/main.yml

diff --git a/ansible/deploy_graphite.yml b/ansible/deploy_graphite.yml
new file mode 100644 (file)
index 0000000..8d478ed
--- /dev/null
@@ -0,0 +1,11 @@
+---
+
+- hosts: all
+  user: vagrant
+  roles:
+    - graphite
+  vars:
+     fqdn: "graphite.local"
+     app_name: "graphite"
+     development_server: true
+     graphite_api_key: "secret"
index e3d8b0d62166a11e3fec8ce9ed63798bc8fc4bc9..cc1603a4fbfcceb9ca7649c5a39e98b8a5e036f3 100644 (file)
@@ -2,7 +2,11 @@
 
 - name: "Build hosts file"
   sudo: yes
-  lineinfile: dest=/etc/hosts regexp=".*{{ fqdn }}$" line="127.0.1.1 {{ fqdn }}" state=present
+  lineinfile:
+    dest: /etc/hosts
+    regexp: ".*{{ fqdn }}$"
+    line: "127.0.1.1 {{ fqdn }}"
+    state: present
 
 - name: Set Hostname with hostname command
   sudo: yes