Add playbook.yaml and roles/requirements.yml from play-s3. Docker and traefik are included via include_role in the playbook.
31 lines
752 B
YAML
31 lines
752 B
YAML
---
|
|
|
|
# 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"
|