Commit 392b9460 by John Jarvis

more changes to support user_info

parent 4352fbca
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
when: user is not defined when: user is not defined
- name: give access with no sudo - name: give access with no sudo
set_fact: set_fact:
USER_INFO: CUSTOM_USER_INFO:
- name: "{{ user }}" - name: "{{ user }}"
github: true github: true
- name: test-admin-user - name: test-admin-user
...@@ -28,4 +28,5 @@ ...@@ -28,4 +28,5 @@
type: restricted type: restricted
sudoers_template: 99-analytics-manage-cmds.j2 sudoers_template: 99-analytics-manage-cmds.j2
roles: roles:
- user - role: user
user_info: "{{ CUSTOM_USER_INFO }}"
...@@ -12,16 +12,17 @@ ...@@ -12,16 +12,17 @@
when: user is not defined when: user is not defined
- name: give access with no sudo - name: give access with no sudo
set_fact: set_fact:
USER_INFO: CUSTOM_USER_INFO:
- name: "{{ user }}" - name: "{{ user }}"
github: true github: true
when: give_sudo is not defined when: give_sudo is not defined
- name: give access with sudo - name: give access with sudo
set_fact: set_fact:
USER_INFO: CUSTOM_USER_INFO:
- name: "{{ user }}" - name: "{{ user }}"
type: admin type: admin
github: true github: true
when: give_sudo is defined when: give_sudo is defined
roles: roles:
- user - role: user
user_info: "{{ CUSTOM_USER_INFO }}"
...@@ -172,7 +172,7 @@ instance_tags: ...@@ -172,7 +172,7 @@ instance_tags:
owner: $BUILD_USER owner: $BUILD_USER
root_ebs_size: $root_ebs_size root_ebs_size: $root_ebs_size
name_tag: $name_tag name_tag: $name_tag
USER_INFO: COMMON_USER_INFO:
- name: ${github_username} - name: ${github_username}
github: true github: true
type: admin 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