]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: ignore failures change /etc/hosts cloud templates 502/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 11 Oct 2016 15:39:52 +0000 (10:39 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 11 Oct 2016 15:39:52 +0000 (10:39 -0500)
Not all our nodes have those templates so ignore failures to modify
those non-existant templates.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ansible/examples/slave.yml

index 61a752e2c05ed22814913f3ba83a993938fb5cc0..e75adba93419b072effbc55e8527c9f47c3519f2 100644 (file)
     # set to true on the image we use in OVH and some jobs will reboot
     # these nodes causing the /etc/hosts file to be replace with these
     # templates making jobs fail because the hostname is not resolvable
+    # not all our images have this setting though, so ignore failures on
+    # those nodes
     - name: update the etc cloud templates for debian /etc/hosts
       sudo: true
       lineinfile:
         dest: /etc/cloud/templates/hosts.debian.tmpl
         line: '127.0.1.1 ceph-builders'
+      failed_when: false
 
     - name: update the etc cloud templates for debian /etc/hosts
       sudo: true
       lineinfile:
         dest: /etc/cloud/templates/hosts.redhat.tmpl
         line: '127.0.1.1 ceph-builders'
+      failed_when: false
 
     - name: install six, latest one
       sudo: true