Skip to content

Commit d028c5f

Browse files
author
bryan hunt
committed
corrected order of tasks
1 parent 1901c72 commit d028c5f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

meta/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ galaxy_info:
77
min_ansible_version: 1.2
88
platforms:
99
- name: EL
10-
versions:
10+
versions:
1111
- 6
1212
categories:
1313
- system

tasks/main.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- yum: name={{ item }} state=latest update_cache=yes
44
with_items:
55
- rsync
6-
- ruby
6+
- ruby
77
- rubygems
88
- nmap
99
- libselinux-python
@@ -12,7 +12,7 @@
1212
gem: name=facter state=latest
1313

1414
- name: download etcd
15-
shell: curl -L {{ etcd_download_url }} -o {{ etcd_download_dir }}/{{ etcd_download_filename }}
15+
shell: curl -L {{ etcd_download_url }} -o {{ etcd_download_dir }}/{{ etcd_download_filename }}
1616

1717
- name: verify etcd
1818
stat: path={{ etcd_download_dir }}/{{ etcd_download_filename }} checksum_algorithm=sha1
@@ -40,13 +40,14 @@
4040
- name: etcd init script
4141
template: src=etc/init/etcd-init.conf.j2 dest=/etc/init.d/etcd
4242

43-
## TODO - tighten up security
43+
- user: name=etcd comment="Etcd daemon" createhome=no home=/var/lib/etcd shell=/bin/sh skeleton=no
44+
45+
## TODO - tighten up security
4446
- file: path=/var/lib/etcd owner=etcd group=etcd state=directory mode=0755
4547

46-
- user: name=etcd comment="Etcd daemon" createhome=no home=/var/lib/etcd shell=/bin/sh skeleton=no
4748

4849
- file: path=/var/log/etcd owner=root group=etcd state=directory mode=0755
49-
- file: path=/var/log/etcd/etcd.log owner=root group=etcd mode=0664
50+
- file: path=/var/log/etcd/etcd.log owner=root group=etcd mode=0664 state=touch
5051

5152
- name: enable and start etcd init script
5253
service: name=etcd enabled=yes state=started

0 commit comments

Comments
 (0)