123456789101112131415161718192021222324252627282930313233 |
- ---
- - name: Configuring cobbler inside container (It may take 5-10 mins)
- command: docker exec cobbler ansible-playbook /root/kickstart.yml
- changed_when: false
- tags: install
- when: not cobbler_status
- - name: Schedule task
- cron:
- name: "start cobbler on reboot"
- special_time: reboot
- job: "ansible-playbook {{ role_path }}/files/start_cobbler.yml"
- tags: install
- when: not cobbler_status
- - name: Execute cobbler sync in cobbler container
- command: docker exec cobbler cobbler sync
- changed_when: true
- when: cobbler_status == true
|