Commit 392b9460 by John Jarvis

more changes to support user_info

parent 4352fbca
......@@ -15,7 +15,7 @@
when: user is not defined
- name: give access with no sudo
set_fact:
USER_INFO:
CUSTOM_USER_INFO:
- name: "{{ user }}"
github: true
- name: test-admin-user
......@@ -28,4 +28,5 @@
type: restricted
sudoers_template: 99-analytics-manage-cmds.j2
roles:
- user
- role: user
user_info: "{{ CUSTOM_USER_INFO }}"
......@@ -12,16 +12,17 @@
when: user is not defined
- name: give access with no sudo
set_fact:
USER_INFO:
CUSTOM_USER_INFO:
- name: "{{ user }}"
github: true
when: give_sudo is not defined
- name: give access with sudo
set_fact:
USER_INFO:
CUSTOM_USER_INFO:
- name: "{{ user }}"
type: admin
github: true
when: give_sudo is defined
roles:
- user
- role: user
user_info: "{{ CUSTOM_USER_INFO }}"
......@@ -172,7 +172,7 @@ instance_tags:
owner: $BUILD_USER
root_ebs_size: $root_ebs_size
name_tag: $name_tag
USER_INFO:
COMMON_USER_INFO:
- name: ${github_username}
github: true
type: admin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment