Skip to content

Commit

Permalink
Add default passwords. Update role activation mechanism.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Jul 10, 2018
1 parent 3493c47 commit f19dd10
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
3 changes: 3 additions & 0 deletions roles/fdupont.v2v-content/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
manageiq_ruby_version: "2.4"
manageiq_ruby_scl: "rh-ruby24"
miq_vm_root_password: smartvm
miq_app_username: admin
miq_app_password: smartvm
miq_v2v_automate_ref: master
21 changes: 15 additions & 6 deletions roles/fdupont.v2v-content/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@
tags:
- manageiq_roles

- name: Activate Notifier and Git Owner roles
- name: Add Notifier, Git Owner and Metrics roles to list of active roles
set_fact:
manageiq_roles: "{{ manageiq_roles }},{{ item }}"
when: "item not in manageiq_roles.split(',')"
with_items:
- 'git_owner'
- 'notifier'
- "ems_metrics_coordinator"
- "ems_metrics_collector"
- "ems_metrics_processor"
tags:
- manageiq_roles

- name: Update list of active roles
uri:
url: https://{{ inventory_hostname }}/api/servers/1/settings
user: "{{ miq_app_username | default('admin') }}"
Expand All @@ -19,11 +32,7 @@
body_format: json
body:
server:
role: "{{ manageiq_roles }},{{ item }}"
when: "item not in manageiq_roles.split(',')"
with_items:
- 'git_owner'
- 'notifier'
role: "{{ manageiq_roles }}"
delegate_to: localhost
connection: local
tags:
Expand Down

0 comments on commit f19dd10

Please sign in to comment.