Skip to content

Commit

Permalink
Merge pull request #87 from jillr/PR64
Browse files Browse the repository at this point in the history
Fixes for Controller support
  • Loading branch information
jillr authored Aug 28, 2023
2 parents 620edfa + c231ba0 commit 89c16e3
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions changelogs/fragments/20230817-update_for_controller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trivial:
- "Update playbooks that include credentials to be able to be used with Automation Controller (not just the command line)"
bugfixes:
- Update playbooks that include credentials to be able to be used with Automation Controller (not just the command line). https://github.com/redhat-cop/cloud.aws_ops/pull/64
4 changes: 2 additions & 2 deletions playbooks/webapp/migrate_webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

module_defaults:
group/aws:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key | default(omit) }}"
aws_secret_key: "{{ aws_secret_key | default(omit) }}"
security_token: "{{ security_token | default(omit) }}"

tasks:
Expand Down
4 changes: 2 additions & 2 deletions playbooks/webapp/tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
- name: Create resources playbook
module_defaults:
group/aws:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key | default(omit) }}"
aws_secret_key: "{{ aws_secret_key | default(omit) }}"
security_token: "{{ security_token | default(omit) }}"
region: "{{ region }}"

Expand Down
4 changes: 2 additions & 2 deletions playbooks/webapp/tasks/delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
- name: Delete resources playbook
module_defaults:
group/aws:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key | default(omit) }}"
aws_secret_key: "{{ aws_secret_key | default(omit) }}"
security_token: "{{ security_token | default(omit) }}"
region: "{{ region | default(aws_region) }}"

Expand Down
4 changes: 2 additions & 2 deletions playbooks/webapp/tasks/deploy_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
- name: Create Cloud Resources (workers, load balancer, etc)
module_defaults:
group/aws:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key | default(omit) }}"
aws_secret_key: "{{ aws_secret_key | default(omit) }}"
security_token: "{{ security_token | default(omit) }}"
region: "{{ region | default(aws_region) }}"

Expand Down
2 changes: 1 addition & 1 deletion playbooks/webapp/vars/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ rds_allocated_storage_gb: 20
rds_instance_class: db.m6g.large
rds_instance_name: mysampledb123
rds_engine: postgres
rds_engine_version: "14.2"
rds_engine_version: "14.8"
rds_master_password: L#5cH2mgy_
rds_master_user: ansible

Expand Down
4 changes: 2 additions & 2 deletions playbooks/webapp/webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

module_defaults:
group/aws:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
aws_access_key: "{{ aws_access_key | default(omit) }}"
aws_secret_key: "{{ aws_secret_key | default(omit) }}"
security_token: "{{ security_token | default(omit) }}"
region: "{{ aws_region }}"

Expand Down

0 comments on commit 89c16e3

Please sign in to comment.