feat: merge role and playbook into single repo
Add playbook.yaml and roles/requirements.yml from play-pangolin. The role now includes docker via include_role in the playbook, matching the ans-jellyfin pattern.
This commit is contained in:
parent
02fba6bb5d
commit
38a728f305
3 changed files with 33 additions and 1 deletions
26
playbook.yaml
Normal file
26
playbook.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
# execute this role
|
||||||
|
- name: "install and configure Pangolin"
|
||||||
|
hosts: "all"
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
# due to semaphore bug we need to do this ourselves
|
||||||
|
- name: "force-update requirements"
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: "ansible-galaxy install -f -r roles/requirements.yml"
|
||||||
|
become: false
|
||||||
|
delegate_to: "localhost"
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
|
# execute the role
|
||||||
|
- name: "execute role: docker"
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: "docker"
|
||||||
|
|
||||||
|
# execute the role
|
||||||
|
- name: "execute role: pangolin"
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: "pangolin"
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# Ansible Role: Pangolin
|
# Ansible Role: Pangolin
|
||||||
|
|
||||||
Install and configure [Pangolin](https://digpangolin.com/) - a serverless web analytics tool.
|
Install and configure [Pangolin](https://digpangolin.com/) - a tunneled reverse proxy for homelabs.
|
||||||
|
|
|
||||||
6
roles/requirements.yml
Normal file
6
roles/requirements.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- name: "docker"
|
||||||
|
src: "https://gitlab.simoncor.net/ansible/ans-docker.git"
|
||||||
|
scm: "git"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue