Skip to content

Commit 0468f44

Browse files
committed
initial import
0 parents  commit 0468f44

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

ansible.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[defaults]
2+
hostfile = hosts
3+
gathering = smart
4+
roles_path = roles

hosts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[pkg_mgr_yum]
2+
vm-rhel67
3+
vm-rhel7
4+
vm-rhel7x
5+
s3cmd-rhel5
6+
s3cmd-rhel7
7+
s3cmd-fedora21
8+
s3cmd-fedora22
9+
s3cmd-fedora23
10+
11+
[s3cmd]
12+
vm-rhel67
13+
vm-rhel7
14+
vm-rhel7x
15+
s3cmd-rhel5
16+
s3cmd-rhel7
17+
s3cmd-fedora21
18+
s3cmd-fedora22
19+
s3cmd-fedora23
20+
#s3cmd-ubuntu

roles/s3cmd/tasks/main.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- name: install general packages
2+
yum: name={{item}} state=present
3+
with_items:
4+
- rsync
5+
- git
6+
- emacs-nox
7+
- python-dateutil
8+
become: yes
9+
10+
- name: install s3cfg
11+
synchronize: src=../../.s3cfg dest=/home/mdomsch/.s3cfg
12+
13+
- name: sync s3cmd git tree
14+
synchronize:
15+
src: ../s3cmd
16+
dest: /home/mdomsch/s3cmd/
17+
rsync_opts:
18+
- "--exclude=testsuite/"

site.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- hosts: pkg_mgr_yum
2+
tasks:
3+
- name: install libselinux-python
4+
yum: name=libselinux-python state=present
5+
become: yes
6+
7+
- name: add mdomsch ssh key
8+
authorized_key: user=mdomsch key="{{ lookup('file', '/home/mdomsch/.ssh/authorized_keys') }}"
9+
10+
- hosts: s3cmd
11+
roles:
12+
- s3cmd

0 commit comments

Comments
 (0)