From 564eb544160095ed6b91ef4a60fbd8acda40a9d2 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Sat, 3 Aug 2024 20:35:36 +0700 Subject: [PATCH] Create web.yml --- .../CloudNexus/roles/pi-network/tasks/web.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 blockchain_integration/pi_network/CloudNexus/roles/pi-network/tasks/web.yml diff --git a/blockchain_integration/pi_network/CloudNexus/roles/pi-network/tasks/web.yml b/blockchain_integration/pi_network/CloudNexus/roles/pi-network/tasks/web.yml new file mode 100644 index 000000000..e202b9610 --- /dev/null +++ b/blockchain_integration/pi_network/CloudNexus/roles/pi-network/tasks/web.yml @@ -0,0 +1,17 @@ +--- +- name: Configure Pi Network web + become: yes + + tasks: + - name: Configure Pi Network web + template: + src: templates/pi-network-web.conf.j2 + dest: /etc/nginx/sites-available/pi-network-web + mode: '0644' + notify: restart nginx + + - name: Start Pi Network web + service: + name: pi-network-web + state: started + enabled: yes