--- # vim: set ft=ansible: ################################################################################ ################################################################################ ############ Step 0000 Setup Runtime ################################################################################ ################################################################################ - import_playbook: setup_runtime.yml tags: - must - step0000 - setup_runtime ################################################################################ ################################################################################ ############ Step 000 Pre Infrastructure Deploy Tasks ################################################################################ ################################################################################ - import_playbook: "./configs/{{ env_type }}/pre_infra.yml" tags: - step000 - pre_infra_tasks ################################################################################# ################################################################################# ############ Step 001 Deploy Infrastructure ################################################################################# ################################################################################# # Use first found: # - infra.yml in config directory # - common cloud_provider - vars: findme: - configs/{{ env_type }}/infra.yml - cloud_providers/{{ cloud_provider }}_infrastructure_deployment.yml import_playbook: "{{ lookup('first_found', findme) }}" tags: - step001 - deploy_infrastructure ################################################################################ ################################################################################ ########### Step 002 Post Infrastructure Deploy Tasks ################################################################################ ################################################################################ - import_playbook: "./configs/{{ env_type }}/post_infra.yml" tags: - step002 - post_infra - post_infra_tasks ################################################################################ ################################################################################ ########### Step 003 Pre Software Deploy Tasks ################################################################################ ################################################################################ - name: Pre Software import_playbook: "./configs/{{ env_type }}/pre_software.yml" tags: - step003 - pre_software - pre_software_tasks ################################################################################## ################################################################################## ############ Step 004 Software Deploy Tasks ################################################################################## ################################################################################## - name: Software import_playbook: "./configs/{{ env_type }}/software.yml" tags: - step004 - deploy_software - import_playbook: "./software_playbooks/{{ software_to_deploy | d('none')}}.yml" tags: - step004 - deploy_software ################################################################################ ################################################################################ ############ Step 005 Post Software Deploy Tasks ################################################################################ ################################################################################ - import_playbook: "./configs/{{ env_type }}/post_software.yml" tags: - step005 - post_software - post_software_tasks