123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- ---
- - name: Check cobbler status on machine
- include_tasks: check_prerequisites.yml
- - name: Mount iso image
- import_tasks: mount_iso.yml
- when: not cobbler_image_status
- - name: Modify firewall settings for Cobbler
- import_tasks: firewall_settings.yml
- when: not cobbler_container_status
- - name: Decrpyt login_vars.yml
- command: >-
- ansible-vault decrypt {{ login_file }}
- --vault-password-file {{ login_vault_file }}
- changed_when: false
- - name: Include variable file login_vars.yml
- include_vars: "{{ login_file }}"
- - name: Include variable file base_vars.yml
- include_vars: "{{ base_file }}"
- - name: Include common variables
- include_vars: ../../control_plane_common/vars/main.yml
- when: not cobbler_container_status
- - name: Internet validation
- include_tasks: ../../control_plane_common/tasks/internet_validation.yml
- when: not cobbler_container_status
- - name: Provision password validation
- import_tasks: provision_password.yml
- when: not cobbler_image_status
- - name: Encypt login file
- command: >-
- ansible-vault encrypt {{ login_file }}
- --vault-password-file {{ login_vault_file }}
- changed_when: false
- - name: Dhcp Configuration
- import_tasks: dhcp_configure.yml
- when: (not cobbler_image_status) or ( backup_map_status == true)
- - name: Mapping file validation
- import_tasks: mapping_file.yml
- when: (not cobbler_image_status) and (host_mapping_file == true) or ( backup_map_status == true)
- - name: Cobbler image creation
- import_tasks: cobbler_image.yml
- when: not cobbler_container_status
- - name: Cobbler configuration
- import_tasks: configure_cobbler.yml
- - name: Cobbler container status message
- block:
- - debug:
- msg: "{{ message_skipped }}"
- verbosity: 2
- when: cobbler_container_status
- - debug:
- msg: "{{ message_installed }}"
- verbosity: 2
- when: not cobbler_container_status
- tags: install
|