Skip to content

Commit 08beeed

Browse files
committed
start work on looking up latest instance ami
not working right now
1 parent 637c077 commit 08beeed

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ This allows us to get the best compression ratio and faster decompression times.
440440

441441
Thank you for your support!
442442

443+
[![Munawwar](https://avatars.githubusercontent.com/Munawwar?size=100)](https://github.com/munawwar)
443444
[![syntaxfm](https://avatars.githubusercontent.com/syntaxfm?size=100)](https://github.com/syntaxfm)
444445
[![th3madhack3r](https://avatars.githubusercontent.com/th3madhack3r?size=100)](https://github.com/th3madhack3r)
445446

@@ -449,7 +450,7 @@ Thank you for your support!
449450
![acchou](https://avatars.githubusercontent.com/acchou?size=30)
450451
![infr](https://avatars.githubusercontent.com/infr?size=30)
451452
![aarmora](https://avatars.githubusercontent.com/aarmora?size=30)
452-
[![azymnis](https://avatars.githubusercontent.com/azymnis?size=30)](https://github.com/azymnis)
453+
![azymnis](https://avatars.githubusercontent.com/azymnis?size=30)
453454
![mushilabs](https://avatars.githubusercontent.com/mushilabs?size=30)
454455
![omgovich](https://avatars.githubusercontent.com/omgovich?size=30)
455456
<img src="https://avatars.githubusercontent.com/kuda1992" width="30" />

_/ansible/inventory.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ansible_connection=local
66
ansible_python_interpreter=python
77
image=ami-06c68f701d8090592
8-
region=us-east-1
8+
aws_region=us-east-1
99
instance_size=c7i.12xlarge
1010

1111
[aws]

_/ansible/plays/chromium.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
amazon.aws.ec2_key:
1717
name: ansible
1818
state: present
19-
region: "{{ region }}"
19+
region: "{{ aws_region }}"
2020
key_material: "{{ item }}"
2121
with_file: ../ansible.pem.pub
2222

@@ -25,7 +25,7 @@
2525
name: Chromium
2626
description: SSH Access
2727
state: present
28-
region: "{{ region }}"
28+
region: "{{ aws_region }}"
2929
rules:
3030
- proto: tcp
3131
to_port: 22
@@ -41,14 +41,15 @@
4141
ebs_optimized: yes
4242
image:
4343
id: "{{ image }}"
44+
# id: "{{ lookup('amazon.aws.aws_ssm', '/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64', region=aws_region) }}"
4445
instance_initiated_shutdown_behavior: terminate
4546
instance_type: "{{ instance_size }}"
4647
key_name: ansible
4748
network:
4849
assign_public_ip: yes
4950
delete_on_termination: yes
5051
groups: Chromium
51-
region: "{{ region }}"
52+
region: "{{ aws_region }}"
5253
security_group: Chromium
5354
state: present
5455
tags:
@@ -88,7 +89,7 @@
8889
become: true
8990
become_user: root
9091
shell: |
91-
dnf update --releasever=2022.0.20221207 -y
92+
dnf update --releasever=2023.6.20250211 -y
9293
9394
- name: Installing Packages
9495
become: true
@@ -334,19 +335,19 @@
334335
wait: yes
335336
state: absent
336337
instance_ids: "{{ ec2.instance_ids }}"
337-
region: "{{ region }}"
338+
region: "{{ aws_region }}"
338339

339340
- name: Deleting Security Group
340341
amazon.aws.ec2_group:
341342
name: Chromium
342343
state: absent
343-
region: "{{ region }}"
344+
region: "{{ aws_region }}"
344345

345346
- name: Deleting EC2 Key Pair
346347
amazon.aws.ec2_key:
347348
name: ansible
348349
state: absent
349-
region: "{{ region }}"
350+
region: "{{ aws_region }}"
350351

351352
- name: Deleting SSH Key
352353
file:

0 commit comments

Comments
 (0)