]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Enable tftpd
authorZack Cerza <zack@redhat.com>
Wed, 10 Jun 2015 23:36:59 +0000 (17:36 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 29 Jun 2015 22:37:06 +0000 (16:37 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler/tasks/main.yml

index 9afd8f11be255bb21369d975e76153a654e720ba..50969eec4ecaf4315674f338b267d56c885aac08 100644 (file)
     state: started
     enabled: yes
 
+- name: Enable tftpd
+  lineinfile: dest=/etc/xinetd.d/tftp regexp=disable line="        disable                 = no"
+  register: tftp_enabled
+  tags:
+    - tftp
+
+- name: Reload xinetd
+  service:
+    name: xinetd
+    state: reloaded
+    enabled: yes
+  when: tftp_enabled|changed
+  tags:
+    - tftp
+
 - name: Start httpd
   service:
     name: "{{ httpd_service }}"