Init: mediaserver

This commit is contained in:
2023-02-08 12:13:28 +01:00
parent 848bc9739c
commit f7c23d4ba9
31914 changed files with 6175775 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# gcsfuse
This role configures the gcsfuse repository, and installs gcsfuse on your host.
gcsfuse is a user-space file system for working with
[Google Cloud Storage](https://cloud.google.com/storage/).
**Important:** You should run gcsfuse as the user who will be using the file
system, not as the root user. Do not use sudo either.
After installed you can use it to mount by command:
`gcsfuse bucket-name /mount/point`
## Example Playbook
Including an example of how to use your role (for instance, with variables
passed in as parameters) is always nice for users too:
```yaml
- hosts: servers
tasks:
- include_role:
name: google.cloud.gcsfuse
```
## License
GPLv3
## Author Information
[ericsysmin](https://ericsysmin.com)

View File

@@ -0,0 +1,2 @@
---
# defaults file for google.cloud.gcsfuse

View File

@@ -0,0 +1,2 @@
---
# handlers file for google.cloud.gcsfuse

View File

@@ -0,0 +1,20 @@
---
galaxy_info:
role_name: gcsfuse
author: Eric Anderson
description: Ansible role to install gcsfuse
license: GPL-3.0
min_ansible_version: "2.9"
platforms:
- name: Ubuntu
versions:
- precise
- trusty
- xenial
- bionic
galaxy_tags:
- gcloud
- google
- gcsfuse
- fuse
dependencies: []

View File

@@ -0,0 +1,28 @@
---
- name: gcsfuse | Ensure gpg is installed
ansible.builtin.apt:
name: "gnupg"
register: task_result
until: task_result is success
retries: 10
delay: 2
- name: gcsfuse | Add an apt signing key
ansible.builtin.apt_key:
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
state: present
- name: gcsfuse | Add the apt repository
ansible.builtin.apt_repository:
repo: deb http://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
state: present
filename: gcsfuse
- name: gcsfuse | Install gcsfuse
ansible.builtin.apt:
name: "gcsfuse"
update_cache: "yes"
register: task_result
until: task_result is success
retries: 10
delay: 2

View File

@@ -0,0 +1,4 @@
---
# tasks file for google.cloud.gcsfuse
- name: Main
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"

View File

@@ -0,0 +1,2 @@
---
# vars file for google.cloud.gcsfuse