GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: adjust Terraform nginx file name · getstackhead/stackhead@39bc6ad

This repository was archived by the owner on Feb 26, 2024. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ansible
    • roles/config_nginx/tasks
      • main.yml
    • templates/terraform
      • nginx_server_block.tf.j2
      • nginx_vhost.tf.j2
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ansible/roles/config_nginx/tasks/main.yml‎

Copy file name to clipboardExpand all lines: ansible/roles/config_nginx/tasks/main.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
- name: Generate nginx vhost Terraform file
1818
template:
19-
src: "templates/terraform/nginx_vhost.tf.j2"
20-
dest: "{{ stackhead__tf_project_folder }}/nginx_vhost.tf"
19+
src: "templates/terraform/nginx_server_block.tf.j2"
20+
dest: "{{ stackhead__tf_project_folder }}/nginx_server_block.tf"
2121
force: true
2222
vars:
2323
nginx_vhost_content: "{{ lookup('template', nginx_vhost_template) }}"
Collapse file

‎ansible/templates/terraform/nginx_server_block.tf.j2‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
resource "nginx_server_block" "{{ project_name }}" {
2+
filename = "{{ project_name }}.conf"
3+
enable = true
4+
content = <<EOF
5+
{{ nginx_vhost_content }}
6+
EOF
7+
}
Collapse file

‎ansible/templates/terraform/nginx_vhost.tf.j2‎

Copy file name to clipboardExpand all lines: ansible/templates/terraform/nginx_vhost.tf.j2
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.