Cloud VM (#7)
All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 6m42s
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:
22
infra/cloud/0003_nextcloud_playbook.yaml
Normal file
22
infra/cloud/0003_nextcloud_playbook.yaml
Normal 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 }}"
|
Reference in New Issue
Block a user