Compare commits
3 Commits
jce/multi-
...
fix_aws_gr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8deced540e | ||
|
|
db97b38fbc | ||
|
|
7468d14a98 |
@@ -44,14 +44,13 @@ controller_inventory_sources:
|
||||
- tag:Name
|
||||
compose:
|
||||
ansible_host: public_ip_address
|
||||
ansible_user: 'ec2-user'
|
||||
ansible_user: ec2-user
|
||||
groups:
|
||||
cloud_aws: true
|
||||
os_linux: tags.blueprint.startswith('rhel')
|
||||
os_windows: tags.blueprint.startswith('win')
|
||||
os_linux: "platform_details == 'Red Hat Enterprise Linux'"
|
||||
os_windows: "platform_details == 'Windows'"
|
||||
|
||||
keyed_groups:
|
||||
- key: platform
|
||||
prefix: os
|
||||
- key: tags.blueprint
|
||||
prefix: blueprint
|
||||
- key: tags.owner
|
||||
@@ -62,6 +61,7 @@ controller_inventory_sources:
|
||||
prefix: deployment
|
||||
- key: tags.Compliance
|
||||
separator: ''
|
||||
|
||||
controller_groups:
|
||||
- name: cloud_aws
|
||||
inventory: Demo Inventory
|
||||
|
||||
@@ -46,15 +46,17 @@
|
||||
- name: Create some users
|
||||
microsoft.ad.user:
|
||||
name: "{{ item.name }}"
|
||||
groups: "{{ item.groups }}"
|
||||
groups:
|
||||
set:
|
||||
- "{{ item.group }}"
|
||||
password: "{{ lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1) }}"
|
||||
update_password: on_create
|
||||
loop:
|
||||
- name: "UserA"
|
||||
groups: "GroupA"
|
||||
group: "GroupA"
|
||||
- name: "UserB"
|
||||
groups: "GroupB"
|
||||
group: "GroupB"
|
||||
- name: "UserC"
|
||||
groups: "GroupC"
|
||||
group: "GroupC"
|
||||
retries: 5
|
||||
delay: 10
|
||||
|
||||
Reference in New Issue
Block a user