]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Prevent local_action from requiring root
authorJames Saint-Rossy <james_saintrossy@cable.comcast.com>
Fri, 2 Sep 2016 23:31:59 +0000 (19:31 -0400)
committerJames Saint-Rossy <james_saintrossy@cable.comcast.com>
Fri, 2 Sep 2016 23:31:59 +0000 (19:31 -0400)
infrastructure-playbooks/purge-cluster.yml
roles/ceph-mon/tasks/start_monitor.yml

index d5e001013015f12481c83bb15b898eb93ec0be5f..ab3eea6e83dac46ec3cb9f63b0825bd2f04bc94c 100644 (file)
@@ -86,6 +86,7 @@
     ignore_errors: true
 
   - name: wait for server to boot
+    become: false
     local_action: wait_for port=22 host={{ inventory_hostname }} state=started delay=10 timeout=400
 
   - name: remove data
 
   - name: is reboot needed
     local_action: shell echo requesting reboot
+    become: false
     notify:
       - restart machine
       - wait for server to boot
index 64146166239f26eea93e8952ae5dfc2d3c904f67..1842802c9379e6860e87a81bc4670201ee9d69ec 100644 (file)
@@ -23,7 +23,7 @@
 # legacy ceph system v init scripts require a mon section in order to work
 - name: add mon section into ceph.conf for systemv init scripts
   ini_file:
-    dest: /etc/ceph/ceph.conf
+    dest: /etc/ceph/{{ cluster }}.conf
     section: mon.{{ ansible_host }}
     option: host
     value: "{{ ansible_host }}"