Skip to content

Commit

Permalink
Moving port to play level.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Oct 23, 2024
1 parent a87b999 commit 91e7bff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions util/ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- name: Update web servers
hosts: ec2
gather_facts: false
environment:
backend_port: 80
roles:
- configure-server
- deploy-artifact
5 changes: 1 addition & 4 deletions util/ansible/roles/configure-server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@
dest: "/etc/environment"
state: present
regexp: "^PORT="
line: "PORT=80"

- name: Source the environment file
shell: "source /etc/environment"
line: "PORT={{ backend_port }}"

0 comments on commit 91e7bff

Please sign in to comment.