Skip to content

Commit 2f94396

Browse files
authored
Add Centos8 to Dynamic Inventory options (#25)
* Improve AMI owners selection to be configurable * Add defaults for aws-marketplace option for centos8 AMI Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
1 parent e16cf71 commit 2f94396

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

roles/infrastructure/tasks/initialize_setup_aws.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
region: "{{ infra__region }}"
7171
filters:
7272
name: "{{ infra__dynamic_inventory_images_default[infra__type][infra__dynamic_inventory_os].search }}"
73-
owner-alias: aws-marketplace
73+
owners: "{{ infra__dynamic_inventory_images_default[infra__type][infra__dynamic_inventory_os].owners }}"
7474
register: __infra_aws_ami_list
7575

7676
- name: Filter to latest Image

roles/infrastructure/vars/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ infra__dynamic_inventory_images_default:
3131
centos7:
3232
search: 'CentOS Linux 7 x86_64 HVM EBS*'
3333
user: 'centos'
34+
owners:
35+
- 'aws-marketplace'
36+
centos8:
37+
search: 'CentOS 8.2*x86*'
38+
user: 'centos'
39+
owners:
40+
- '125523088429'
3441

3542
infra__all_ports_security_rule:
3643
aws: -1

0 commit comments

Comments
 (0)