3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 - name: Set fact for users
18 - "{{ keystone_admin_user_name }}"
22 - name: Set fact for users 2
28 - "{{ keystone_admin_user_name }}"
29 when: '"controller" in hosts[installation_controller]["service_profiles"]'
33 - name: Get UUID of users
37 user_name: "{{ item }}"
38 endpoint: "{{ keystone_service_adminurl }}"
39 login_user: "{{ keystone_admin_user_name }}"
40 login_password: "{{ keystone_auth_admin_password }}"
41 login_project_name: "{{ keystone_admin_tenant_name }}"
42 with_items: "{{ am_users }}"
43 register: keystone_uuids
47 - name: Create bash script to set service user special password policy options
49 src: keystone_users_patch.sh.j2
50 dest: "{{ am_server_temp_dir }}/keystone_users_patch.sh"
55 - name: Run the bash script
57 shell: "{{ am_server_temp_dir }}/keystone_users_patch.sh >> {{ am_config.Logging.logdir }}/keystone_users_patch.log"