feat: merge role and playbook into single repo
Add playbook.yaml and roles/requirements.yml from play-s3. Docker and traefik are included via include_role in the playbook.
This commit is contained in:
parent
576fa8533c
commit
0a143de4b7
2 changed files with 40 additions and 0 deletions
31
playbook.yaml
Normal file
31
playbook.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
|
||||
# execute this role
|
||||
- name: "install and configure s3"
|
||||
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: traefik"
|
||||
ansible.builtin.include_role:
|
||||
name: "traefik"
|
||||
|
||||
# execute the role
|
||||
- name: "execute role: rustfs"
|
||||
ansible.builtin.include_role:
|
||||
name: "rustfs"
|
||||
9
roles/requirements.yml
Normal file
9
roles/requirements.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
roles:
|
||||
- name: "docker"
|
||||
src: "https://gitlab.simoncor.net/ansible/ans-docker.git"
|
||||
scm: "git"
|
||||
- name: "traefik"
|
||||
src: "https://gitlab.simoncor.net/ansible/ans-traefik.git"
|
||||
scm: "git"
|
||||
Loading…
Add table
Add a link
Reference in a new issue