summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse
diff options
context:
space:
mode:
Diffstat (limited to 'collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse')
-rw-r--r--collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/README.md31
-rw-r--r--collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml2
-rw-r--r--collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml2
-rw-r--r--collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml25
-rw-r--r--collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml4
-rw-r--r--collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml2
6 files changed, 66 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/README.md b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/README.md
new file mode 100644
index 00000000..2da6d4d1
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/README.md
@@ -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)
diff --git a/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml
new file mode 100644
index 00000000..f5197714
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/defaults/main.yml
@@ -0,0 +1,2 @@
+---
+# defaults file for google.cloud.gcsfuse
diff --git a/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml
new file mode 100644
index 00000000..db9f8ae0
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/handlers/main.yml
@@ -0,0 +1,2 @@
+---
+# handlers file for google.cloud.gcsfuse
diff --git a/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml
new file mode 100644
index 00000000..9443524a
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/debian.yml
@@ -0,0 +1,25 @@
+---
+- name: gcsfuse | Ensure gpg is installed
+ apt: name=gnupg
+ register: task_result
+ until: task_result is success
+ retries: 10
+ delay: 2
+
+- name: gcsfuse | Add an apt signing key
+ apt_key:
+ url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
+ state: present
+
+- name: gcsfuse | Add the apt repository
+ apt_repository:
+ repo: deb http://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
+ state: present
+ filename: gcsfuse
+
+- name: gcsfuse | Install gcsfuse
+ apt: name=gcsfuse update_cache=yes
+ register: task_result
+ until: task_result is success
+ retries: 10
+ delay: 2
diff --git a/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml
new file mode 100644
index 00000000..c5432c54
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/tasks/main.yml
@@ -0,0 +1,4 @@
+---
+# tasks file for google.cloud.gcsfuse
+
+- include_tasks: "{{ ansible_os_family|lower }}.yml"
diff --git a/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml
new file mode 100644
index 00000000..019372d6
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/google/cloud/roles/gcsfuse/vars/main.yml
@@ -0,0 +1,2 @@
+---
+# vars file for google.cloud.gcsfuse