]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Don't attempt to manage tftpd on apt systems
authorZack Cerza <zack@redhat.com>
Wed, 16 Sep 2015 17:19:02 +0000 (11:19 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 16 Sep 2015 17:19:02 +0000 (11:19 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/tasks/main.yml

index e1f0ac6d156f3afd5afbd8be7d8611c667642c5e..8349388c16879b11973616b7cdac601c9e5a7127 100644 (file)
@@ -45,6 +45,7 @@
     dest: /etc/xinetd.d/tftp
     regexp: disable
     line: "        disable                 = no"
+  when: ansible_pkg_mgr == "yum"
   register: tftp_enabled
   tags:
     - tftp
@@ -54,7 +55,7 @@
     name: xinetd
     state: reloaded
     enabled: yes
-  when: tftp_enabled|changed
+  when: tftp_enabled is defined and tftp_enabled|changed
   tags:
     - tftp