Cloud VM (#7)
All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 6m42s

- Nextcloud & potentially other "cloud" stuff VM

Reviewed-on: #7
This commit is contained in:
2023-09-26 19:50:11 +00:00
parent 13bb62fe61
commit 68aff49459
10 changed files with 393 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
- name: Deploy app
hosts: cloud
gather_facts: false
vars:
app: nextcloud
tasks:
- name: Wait for connection
ansible.builtin.wait_for_connection:
timeout: 300
- name: Get user
ansible.builtin.user:
name: debian
register: user
- name: Copy project
ansible.builtin.copy:
src: ./{{ app }}
dest: "{{ user.home }}"
mode: "0744"
- name: Re-deploy
ansible.builtin.command: bash all-in-one.sh
args:
chdir: "{{ user.home }}/{{ app }}"