Commit baa9d2ce by e0d

draft task work

parent 598432a8
---
#
# 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 s3fs
#
# Overview:
#
#
- name: s3fs | 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 s3fs
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
- name: s3fs | install system packages
apt: pkg={{','.join(s3fs_debian_pkgs)}} state=present
tags:
- s3fs
- install
- update
- name: s3fs | fetch package
get_url:
url={{ s3fs_download_url }}/s3fs-{{ s3fs_version }}.tar.gz
dest={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}.tar.gz
- name: s3fs | unzip package
shell:
/bin/tar zxvf s3fs-{{ s3fs_version }}.tar.gz
chdir={{ s3fs_temp_dir }}
creates={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}/configure
- name: s3fs | configure
shell:
./configure
chdir={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}
creates={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}/config.status
- name: s3fs | make
shell:
/usr/bin/make
chdir={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}
creates={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}/src/s3cmd
- name: s3fs | make install
shell:
/usr/bin/make install
chdir={{ s3fs_temp_dir }}/s3fs-{{ s3fs_version }}
\ No newline at end of file
---
#
# 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 s3fs
#
#
# Google code s3fx
#
#s3fs_version: '1.72'
#s3fs_download_src: 'https://s3fs.googlecode.com/file/'
#s3fs_archive: 's3fs-{{ s3fs_version }}.tar.gz'
#s3fs_download_url: {{ s3fs_download_src }}/{{ s3fs_archive }}
#
# Franc carter fork with iam role support and memory leak fix
#
s3fs_version: 'master'
s3fs_download_src: 'https://github.com/franc-carter/s3fs-c/archive/'
s3fs_archive: 'master.zip'
s3fs_unzip_dest: 's3fs-{{ s3fs_version }'
s3fs_download_url: {{ s3fs_download_src }}/{{ s3fs_archive }}
s3fs_temp_dir: '/var/tmp'
https://github.com/franc-carter/s3fs-c/archive/master.zip
#
# vars are namespace with the module name.
#
s3fs_role_name: s3fs
#
# OS packages
#
s3fs_debian_pkgs:
- make
- g++
- libcurl4-openssl-dev
- libssl-dev
- libxml2-dev
- libfuse-dev
s3fs_redhat_pkgs:
- gcc
- libstdc++-devel
- gcc-c++
- fuse
- fuse-devel
- curl-devel
- libxml2-devel
- openssl-devel
- mailcap
\ No newline at end of file
---
#
# 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 | stub ansible task
debug: msg="This is a stub task created by the ansible-role role"
notify: task | notify me
\ No newline at end of file
---
#
# 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
#
# OS packages
#
task_debian_pkgs: []
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