Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ansible/playbooks/group_vars/all.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# Variables available to all hosts
project_name: aws-devops
deploy_env: dev
deploy_env: dev

2 changes: 1 addition & 1 deletion ansible/playbooks/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

roles:
- role: common
- role: nginx
- role: nginx
2 changes: 1 addition & 1 deletion ansible/roles/common/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ common_packages:
- unzip
- net-tools

common_timezone: UTC
common_timezone: UTC
3 changes: 2 additions & 1 deletion ansible/roles/common/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
- name: Set system timezone
community.general.timezone:
name: "{{ common_timezone }}"
become: true
become: true

2 changes: 1 addition & 1 deletion ansible/roles/nginx/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
nginx_port: 80
nginx_worker_processes: auto
nginx_worker_connections: 1024
nginx_worker_connections: 1024
3 changes: 2 additions & 1 deletion ansible/roles/nginx/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
ansible.builtin.service:
name: nginx
state: reloaded
become: true
become: true

3 changes: 2 additions & 1 deletion ansible/roles/nginx/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@
name: nginx
state: started
enabled: true
become: true
become: true

10 changes: 5 additions & 5 deletions terraform/global/iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ resource "aws_iam_role" "github_actions" {
# -----------------------------------------------------------------------------
data "aws_iam_policy_document" "github_actions_permissions" {
statement {
sid = "TerraformStateAccess"
effect = "Allow"
actions = [
sid = "TerraformStateAccess"
effect = "Allow"
actions = [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
Expand All @@ -75,8 +75,8 @@ data "aws_iam_policy_document" "github_actions_permissions" {
}

statement {
sid = "IAMAccess"
effect = "Allow"
sid = "IAMAccess"
effect = "Allow"
actions = [
"iam:CreateRole", "iam:DeleteRole", "iam:GetRole", "iam:UpdateRole",
"iam:AttachRolePolicy", "iam:DetachRolePolicy", "iam:ListAttachedRolePolicies",
Expand Down
Loading