]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
downstream-setup: ignore errors when disabling or enabling repos 55/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 23 Jun 2015 20:16:32 +0000 (15:16 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 23 Jun 2015 20:16:32 +0000 (15:16 -0500)
The lineinfile module fails if dest doesn't exist. We want this to fail
silently instead. The ansible output still does a good job of letting
you know a task failed without failing the entire playbook.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/downstream-setup/tasks/disable_yum_repos.yml
roles/downstream-setup/tasks/enable_yum_repos.yml

index 022eea17af7571711a5de18c397fcfce4f13a6d1..1a9a65787255322c07bc6b8408c2d45a178eaaa2 100644 (file)
@@ -7,3 +7,4 @@
     backrefs: yes
     state: present
   with_items: disable_yum_repos
+  ignore_errors: true
index 1920e9c6c0040e683dada5cbbd5af3d2d1807eaa..6b5f5bb8c5e2d3e7f6fb073638d4a17a31b971fd 100644 (file)
@@ -7,3 +7,4 @@
     backrefs: yes
     state: present
   with_items: enable_yum_repos
+  ignore_errors: true