Commit b2dbe243 by e0d

refactoring and renaming

parent d22f3c5c
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Handlers for role task
#
# Overview:
#
#
- name: task | notify me
debug: msg="stub handler"
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role task
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
- name: task | install task specific system packages
apt: pkg={{','.join(task_debian_pkgs)}} state=present
tags:
- task
- install
- update
- name: task | create s3fs mount points
file:
path={{ item.mount_point }} owner={{ item.owner }}
group={{ item.group }} mode={{ item.mode }} state="directory"
with_items: "{{ task_s3fs_mounts }}"
- name: task | mount s3 buckets
mount:
name={{ item.mount_point }} src={{ item.bucket }} fstype=fuse.s3fs
opts=use_cache=/tmp,iam_role={{ task_iam_role }} state=mounted
with_items: "{{ task_s3fs_mounts }}"
#- name: task | mount s3 buckets
# shell:
# /usr/local/bin/s3fs {{ item.bucket }} {{ item.mount_point }} -ouse_cache=/tmp,iam_role={{ task_iam_role }}
# with_items: "{{ task_s3fs_mounts }}"
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Vars for role task
#
#
# vars are namespace with the module name.
#
task_role_name: task
task_iam_role: stage-task
task_s3fs_mounts:
- { bucket: "edx-all-tracking-logs", mount_point: "/mnt/edx-all-tracking-logs", owner: "root", group: "adm", mode: "0755" }
#
# OS packages
#
task_debian_pkgs:
- libmysqlclient-dev
task_redhat_pkgs: []
task_pip_pkgs:
- git+https://github.com/s3tools/s3cmd.git#egg=s3cmd
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment