Added cryptpad role
This commit is contained in:
3
roles/common/tasks/main.yml
Normal file
3
roles/common/tasks/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- include: web.yml
|
||||
- include: tools.yml
|
||||
10
roles/common/tasks/tools.yml
Normal file
10
roles/common/tasks/tools.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: use Node
|
||||
when: node_version is defined
|
||||
block:
|
||||
- name: check used version
|
||||
command: uberspace tools version show node
|
||||
register: used_node
|
||||
- name: update used version
|
||||
command: uberspace tools version use node {{ node_version }}
|
||||
when: used_node.stdout.find(node_version|string) == -1
|
||||
13
roles/common/tasks/web.yml
Normal file
13
roles/common/tasks/web.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: list domains
|
||||
command: uberspace web domain list
|
||||
register: domains
|
||||
- name: set up domain
|
||||
when: domains.stdout.find(domain) == -1
|
||||
block:
|
||||
- name: add domain
|
||||
command: uberspace web domain add {{ domain }}
|
||||
register: new_domain
|
||||
- name: print out important information
|
||||
debug:
|
||||
msg: "{{ new_domain.stdout }}"
|
||||
Reference in New Issue
Block a user