Compare commits
5 Commits
jce/multi-
...
jce/firewa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37a515b8f5 | ||
|
|
0634643f21 | ||
|
|
ec07488b97 | ||
|
|
db97b38fbc | ||
|
|
7468d14a98 |
@@ -44,14 +44,13 @@ controller_inventory_sources:
|
|||||||
- tag:Name
|
- tag:Name
|
||||||
compose:
|
compose:
|
||||||
ansible_host: public_ip_address
|
ansible_host: public_ip_address
|
||||||
ansible_user: 'ec2-user'
|
ansible_user: ec2-user
|
||||||
groups:
|
groups:
|
||||||
cloud_aws: true
|
cloud_aws: true
|
||||||
os_linux: tags.blueprint.startswith('rhel')
|
os_linux: "platform_details == 'Red Hat Enterprise Linux'"
|
||||||
os_windows: tags.blueprint.startswith('win')
|
os_windows: "platform_details == 'Windows'"
|
||||||
|
|
||||||
keyed_groups:
|
keyed_groups:
|
||||||
- key: platform
|
|
||||||
prefix: os
|
|
||||||
- key: tags.blueprint
|
- key: tags.blueprint
|
||||||
prefix: blueprint
|
prefix: blueprint
|
||||||
- key: tags.owner
|
- key: tags.owner
|
||||||
@@ -62,6 +61,7 @@ controller_inventory_sources:
|
|||||||
prefix: deployment
|
prefix: deployment
|
||||||
- key: tags.Compliance
|
- key: tags.Compliance
|
||||||
separator: ''
|
separator: ''
|
||||||
|
|
||||||
controller_groups:
|
controller_groups:
|
||||||
- name: cloud_aws
|
- name: cloud_aws
|
||||||
inventory: Demo Inventory
|
inventory: Demo Inventory
|
||||||
|
|||||||
@@ -52,7 +52,9 @@
|
|||||||
state: enabled
|
state: enabled
|
||||||
immediate: true
|
immediate: true
|
||||||
permanent: true
|
permanent: true
|
||||||
when: "'firewalld.service' in ansible_facts.services"
|
when:
|
||||||
|
- "'firewalld.service' in ansible_facts.services"
|
||||||
|
- ansible_facts.services["firewalld.service"].state == "running"
|
||||||
|
|
||||||
- name: Disable httpd welcome page
|
- name: Disable httpd welcome page
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|||||||
@@ -46,15 +46,17 @@
|
|||||||
- name: Create some users
|
- name: Create some users
|
||||||
microsoft.ad.user:
|
microsoft.ad.user:
|
||||||
name: "{{ item.name }}"
|
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) }}"
|
password: "{{ lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1) }}"
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
loop:
|
loop:
|
||||||
- name: "UserA"
|
- name: "UserA"
|
||||||
groups: "GroupA"
|
group: "GroupA"
|
||||||
- name: "UserB"
|
- name: "UserB"
|
||||||
groups: "GroupB"
|
group: "GroupB"
|
||||||
- name: "UserC"
|
- name: "UserC"
|
||||||
groups: "GroupC"
|
group: "GroupC"
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user