Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Playbooks not executing import roles:
- ##############################################
- ---
- - hosts: all
- become: true
- tasks:
- - name: validate variables
- assert:
- that:
- - "{{item}} is defined"
- with_items:
- - mdc_version
- - gsm_vip
- - gsm_etcd_port
- - gsm_influxdb_port
- - gsm_uls_server_port
- # import_role is static
- # - no conditional applied
- # - no loops can be used
- # include_role is dynamic
- # - can use conditional and/or loops
- - name: disable selinux
- import_role:
- name: disable_selinux
- - import_role:
- name: disable_swap
- - import_role:
- name: gsm-repo
- vars:
- GSM_IP: "{{gsm_vip}}"
- - import_role:
- name: install-image
- vars:
- VERSION: "{{mdc_version}}"
- CREATE_REPO: false
- REPO_URL: none
- - import_role:
- name: sessions
- - import_role:
- name: snaptel
- vars:
- INFLUX_HOST: "{{gsm_vip}}"
- INFLUX_PORT: "{{gsm_influxdb_port}}"
- - import_role:
- name: telegraf
- vars:
- INFLUX_HOST: "{{gsm_vip}}"
- INFLUX_PORT: "{{gsm_influxdb_port}}"
- - import_role:
- name: mdc-etcdgrpc
- vars:
- etcdgrpc_client_ip: "{{gsm_vip}}"
- etcdgrpc_client_port: "{{gsm_etcd_port}}"
- - import_role:
- name: gsm-vars
- vars:
- GSM_VIP: "{{gsm_vip}}"
- ULS_SERVER_PORT: "{{gsm_uls_server_port}}"
- INFLUXDB_PORT: "{{gsm_influxdb_port}}"
- - import_role:
- name: ntp
- # optional ntp servers can be added as variables as group vars
- # must be include_role as we are using a conditional execution
- - include_role:
- name: dns
- when: dns_nameservers exists
- # optional dns servers can be added as variables as group vars
- - import_role:
- name: qpid
- - import_role:
- name: mdc-memcached
- tasks_from: start
- # this role will need to handle the set of nodes differently
- - import_role:
- name: mdc-env
- - import_role:
- name: mdc-etcd
- tasks_from: setup
- # this role will need to handle the set of nodes differently
- - import_role:
- name: mdc-services
- # support setting timezone for php. may not be needed.
- - import_role:
- name: php-tz
- # use this role to deploy customer certs
- - import_role:
- name: jdauphant.ssl-certs
- - name: cleanup yum
- command: yum clean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement