Skip to content

Commit 04ad446

Browse files
committed
Merge branch 'devel'
2 parents a622f2e + f784004 commit 04ad446

File tree

5 files changed

+47
-14
lines changed

5 files changed

+47
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,9 @@
141141
## v1.4.6
142142

143143
- Better conditionals for init scripts fixes #5
144+
- Change to compact YAML
145+
- Misc task updates
146+
147+
## v1.5.0
148+
149+
- Version fix

CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
Thank you to all these fine folk for helping with ansible-consul!
44

55
- [@dggreenbaum](https://github.com/dggreenbaum)
6+
- [@asemt](https://github.com/asemt)
7+

tasks/install.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,31 @@
22
# File: tasks/install.yml - package installation tasks for Nomad
33

44
- name: OS packages
5-
package: "name={{ item }} state=present"
5+
package:
6+
name: "{{ item }}"
7+
state: present
68
with_items: "{{ nomad_os_packages }}"
79
tags: installation
810

911
- name: Check Nomad package checksum file
1012
become: no
1113
connection: local
12-
stat: "path={{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
14+
stat:
15+
path: "{{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
1316
run_once: true
1417
register: nomad_checksum
1518

1619
- name: Get Nomad package checksum file
1720
become: no
1821
connection: local
19-
get_url: "url={{ nomad_checksum_file_url }} dest={{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
22+
get_url:
23+
url: "{{ nomad_checksum_file_url }}"
24+
dest: "{{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
2025
run_once: true
2126
tags: installation
2227
when: nomad_checksum.stat.exists == False
2328

24-
- name: Get nomad package checksum
29+
- name: Get Nomad package checksum
2530
become: no
2631
connection: local
2732
shell: "grep {{ nomad_pkg }} {{ role_path }}/files/nomad_{{ nomad_version }}_SHA256SUMS"
@@ -32,32 +37,49 @@
3237
- name: Check Nomad package file
3338
become: no
3439
connection: local
35-
stat: "path={{ role_path }}/files/{{ nomad_pkg }}"
40+
stat:
41+
path: "{{ role_path }}/files/{{ nomad_pkg }}"
3642
run_once: true
3743
register: nomad_package
3844

39-
- name: Download nomad
45+
- name: Download Nomad
4046
become: no
4147
connection: local
42-
get_url: "url={{ nomad_zip_url }} dest={{ role_path }}/files/{{ nomad_pkg }} checksum=sha256:{{ nomad_sha256.stdout.split(' ')|first }} timeout=42"
48+
get_url:
49+
url: "{{ nomad_zip_url }}"
50+
dest: "{{ role_path }}/files/{{ nomad_pkg }}"
51+
checksum:
52+
sha256: "{{ nomad_sha256.stdout.split(' ')|first }}"
53+
timeout: 42
4354
run_once: true
4455
tags: installation
4556
when: nomad_package.stat.exists == False
4657

47-
- name: Unarchive nomad
58+
- name: Unarchive Nomad
4859
become: no
4960
connection: local
50-
unarchive: "src={{ role_path }}/files/{{ nomad_pkg }} dest={{ role_path }}/files/ creates={{ role_path }}/files/nomad"
61+
unarchive:
62+
src: "{{ role_path }}/files/{{ nomad_pkg }}"
63+
dest: "{{ role_path }}/files/"
64+
creates: "{{ role_path }}/files/nomad"
5165
run_once: true
5266
tags: installation
5367

54-
- name: Install nomad
55-
copy: "src={{ role_path }}/files/nomad dest=/usr/local/bin/ owner={{ nomad_user }} group={{ nomad_group }} mode=0755"
68+
- name: Install Nomad
69+
copy:
70+
src: "{{ role_path }}/files/nomad"
71+
dest: /usr/local/bin/
72+
owner: "{{ nomad_user }}"
73+
group: "{{ nomad_group }}"
74+
mode: 0755
5675
tags: installation
5776

5877
- name: Cleanup
5978
become: no
6079
connection: local
61-
file: "dest={{ role_path }}/files/nomad state=absent"
80+
file:
81+
path: "{{ item }}"
82+
state: absent
83+
with_fileglob: "{{ role_path }}/files/nomad"
6284
run_once: true
6385
tags: installation

tasks/selinux.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
when: nomad_docker_enable == "true"
99

1010
- name: Disable SELinux
11-
replace: dest=/etc/selinux/config regexp='^SELINUX=enforcing' replace='SELINUX=disabled'
11+
replace:
12+
dest: /etc/selinux/config
13+
regexp: '^SELINUX=enforcing'
14+
replace: 'SELINUX=disabled'
1215
when: nomad_docker_enable == "true"

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.4.6
1+
v1.5.0

0 commit comments

Comments
 (0)