Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: Update cache
- hosts: 'all:!tag_Component_hadoop:!tag_Component_hadoop_expansion:!tag_Component_hdfs:!tag_Component_cassandra:!tag_Component_redis:!tag_Component_mssql'
- user: "{{ USER | default('deploy')}}"
- roles:
- - update_cache
- - name: create new instance
- hosts: localhost
- become: false
- roles:
- - { role: create_instance,
- component: "{{ COMPONENT | default('SPECIFY-A-COMPONENT') }}",
- public: no,
- security_groups: ['default', '{{ component }}-{{ datacenter }}'],
- type: m4.xlarge,
- when: new is defined and new }
- - name: configure instance data volume
- hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
- user: "{{ USER | default('deploy')}}"
- become: true
- roles:
- - { role: prep_data_volume,
- when: new is defined and new }
- - name: tag instance and create resource records
- hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
- user: "{{ USER | default('deploy')}}"
- become: false
- roles:
- - { role: tag_instance,
- component: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}",
- when: new is defined and new }
- - name: Create Apixio Users
- hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
- user: "{{ USER | default('deploy') }}"
- become: true
- roles:
- - users
- - name: Deploy Apixio Service
- hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
- user: "{{ USER | default('deploy') }}"
- become: true
- roles:
- - apixio_services
- - name: Apixio 'Consul Cluster' Playbook
- hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
- user: "{{ USER | default('deploy') }}"
- become: true
- roles:
- - consul
- - name: Stop consul service
- hosts: "stop_consul:{{ HOSTS| default('tag_Component_SPECIFY-A-COMPONENT')}}"
- user: "{{ USER | default('deploy') }}"
- become: true
- roles:
- - manage_services
- - name: notify slack channel
- hosts: "{{ HOSTS | default('tag_Component_SPECIFY-A-COMPONENT') }}"
- user: "{{ USER | default('deploy') }}"
- roles:
- - notify_slack_channel
Add Comment
Please, Sign In to add comment